You are on page 1of 1

Git init:

- Create an Empty git repository or reinitialize an existing one


eg: git init

git status
- show the working tree status
eg: git status

git add
- add file contents to the index
eg: git add.
Eg: git add filename file anme

git commit
- Record changes to the repository
eg: git commit -m “first commit”

git log
- show commit log
eg: git log

git show
- show various types of objects
eg:git show

git branches
- list create, delete branches
eg: git branch branchname

git checkout
- checkout a branches
eg: git checkout branchname

git fetch
- download objects and refs from another repository

git merge
-j

git pull= fetch+merge


-

You might also like