Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Sunday, June 13, 2021

GIT Commands

 

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.