GIT commands that is useful in day to day work
1) git mv oldfile newfile
2) git rm filename
3) git diff -- local
4) git diff -cached
5) git diff --unstaged
6) git commit -a is equal to git commit -all (will not inlcude untracked files) -- without changes
7) git log
8) git log --oneline
9) git show (commitid)
10) git diff onecommit..secondcommit
11) git checkout -- test.txt
12) git show head
13) .gitignore file will be used fro ignoring.
14) git pull
15) git branch -r
16) git status
17)git add .
18) git commit -m "test"
19) git push
No comments:
Post a Comment