jahirraihan22 / DEVOPS_ROADMAP

0 stars 1 forks source link

Sec 13: GIT (1 hr) 1 #5

Closed jahirraihan22 closed 2 years ago

jahirraihan22 commented 2 years ago

create 10 files same pattern


touch abc{1..10}.txt
jahirraihan22 commented 2 years ago

git status

git init

git add .

git commit -m "message"

git config --global user.email "your@example.com"
git config --global user.name "your name"
jahirraihan22 commented 2 years ago

Image

jahirraihan22 commented 2 years ago

# show git commit history
git show commit_id

# show git log
git log --oneline 
jahirraihan22 commented 2 years ago

git rm test.txt

git mv test.txt

git switch branch1

jahirraihan22 commented 2 years ago

Rollback

jahirraihan22 commented 2 years ago