Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GITHUB
- ======
- $ sudo yum install git tree -y
- $ git --version
- git version 2.39.1
- $ mkdir website
- $ cd website/
- $ cat main.yml
- playbook
- $ git init
- $ git config git.user sree
- $ git config git.email [email protected]
- $ git status
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- main.yml
- $ git add main.yml
- $ git status
- Changes to be committed:
- new file: main.yml
- $ git ls-files -s
- 100644 843a4c41f380230b4ffeb00c59d18b69fb4c6bae 0 main.yml
- $ git cat-file -p 843a4c41f380230b4ffeb00c59d18b69fb4c6bae
- playbook
- $ echo "linux" > centos.txt
- $ echo "linux" > redhat.txt
- $ git status
- Changes to be committed:
- new file: main.yml
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- centos.txt
- redhat.txt
- $ git add centos.txt redhat.txt
- $ git status
- Changes to be committed:
- new file: centos.txt
- new file: main.yml
- new file: redhat.txt
- $ git ls-files -s
- 100644 a08e1f35eb7c510c1d29584d7edc575339876a01 0 centos.txt
- 100644 843a4c41f380230b4ffeb00c59d18b69fb4c6bae 0 main.yml
- 100644 a08e1f35eb7c510c1d29584d7edc575339876a01 0 redhat.txt
- $ git cat-file -p a08e
- linux
- $ echo "linux version1" > centos.txt
- $ git status
- Changes to be committed:
- new file: centos.txt
- new file: main.yml
- new file: redhat.txt
- Changes not staged for commit:
- modified: centos.txt
- $ git add centos.txt
- $ git status
- Changes to be committed:
- new file: centos.txt
- new file: main.yml
- new file: redhat.txt
- $ git ls-files -s
- 100644 a4e92f028a473a8af1ae075e99cf37099967b852 0 centos.txt
- 100644 843a4c41f380230b4ffeb00c59d18b69fb4c6bae 0 main.yml
- 100644 a08e1f35eb7c510c1d29584d7edc575339876a01 0 redhat.txt
- $ git cat-file -p a4e9
- linux version
- $ echo "linux version2" > centos.txt
- $ git status
- Changes to be committed:
- new file: centos.txt
- new file: main.yml
- new file: redhat.txt
- Changes not staged for commit:
- modified: centos.txt
- $ git add centos.txt
- $ git status
- Changes to be committed:
- new file: centos.txt
- new file: main.yml
- new file: redhat.txt
- $ git ls-files -s
- 100644 3347ced1991155b3e01fbf6671a62e53121d185b 0 centos.txt
- 100644 843a4c41f380230b4ffeb00c59d18b69fb4c6bae 0 main.yml
- 100644 a08e1f35eb7c510c1d29584d7edc575339876a01 0 redhat.txt
- ├── objects
- │ ├── 33
- │ │ └── 47ced1991155b3e01fbf6671a62e53121d185b
- │ ├── 84
- │ │ └── 3a4c41f380230b4ffeb00c59d18b69fb4c6bae
- │ ├── a0
- │ │ └── 8e1f35eb7c510c1d29584d7edc575339876a01
- │ ├── a4
- │ │ └── e92f028a473a8af1ae075e99cf37099967b852
- $ git rm --cached centos.txt
- rm 'centos.txt'
- $ git ls-files -s
- 100644 843a4c41f380230b4ffeb00c59d18b69fb4c6bae 0 main.yml
- 100644 a08e1f35eb7c510c1d29584d7edc575339876a01 0 redhat.txt
- ├── objects
- │ ├── 33
- │ │ └── 47ced1991155b3e01fbf6671a62e53121d185b
- │ ├── 84
- │ │ └── 3a4c41f380230b4ffeb00c59d18b69fb4c6bae
- │ ├── a0
- │ │ └── 8e1f35eb7c510c1d29584d7edc575339876a01
- │ ├── a4
- │ │ └── e92f028a473a8af1ae075e99cf37099967b852
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement