Git Commands
Git Pull
git pull will gets all from a remote and it instantly merge it into the branch you are in when you make the request. Pull is a request that runs ‘fetch’ then a ‘merge’ by default.
Git Fetch
Fetch is similar to pull, except it won’t do any merging.
Download objects and refs from another repository
Git Init
command: git init
Create an empty Git repository or reinitialize an existing one
Git Status
command: git status
Show the working tree status
Git Commit
command: git commit -m "Message"
Record changes to the repository
Git Push
command: git push
Update remote refs along with associated objects
Git add
Add file contents to the index
Git bisect
Find by binary search the change that introduced a bug
Git branch
List, create, or delete branches
Git checkout
Checkout a branch or paths to the working tree
Git clone
Clone a repository into a new directory
Git diff
Show changes between commits, commit and working tree, etc
Git merge
Join two or more development histories together
Git rebase
Forward-port local commits to the updated upstream head
Git reset
Reset current HEAD to the specified state
Git rm
Remove files from the working tree and from the index
Git mv
Move or rename a file, a directory, or a symlink
Git show
Show various types of objects
Git tag
Create, list, delete or verify a tag object signed with GPG
git pull will gets all from a remote and it instantly merge it into the branch you are in when you make the request. Pull is a request that runs ‘fetch’ then a ‘merge’ by default.
Git Fetch
Fetch is similar to pull, except it won’t do any merging.
Download objects and refs from another repository
Git Init
command: git init
Create an empty Git repository or reinitialize an existing one
Git Status
command: git status
Show the working tree status
Git Commit
command: git commit -m "Message"
Record changes to the repository
Git Push
command: git push
Update remote refs along with associated objects
Git add
Add file contents to the index
Git bisect
Find by binary search the change that introduced a bug
Git branch
List, create, or delete branches
Git checkout
Checkout a branch or paths to the working tree
Git clone
Clone a repository into a new directory
Git diff
Show changes between commits, commit and working tree, etc
Git merge
Join two or more development histories together
Git rebase
Forward-port local commits to the updated upstream head
Git reset
Reset current HEAD to the specified state
Git rm
Remove files from the working tree and from the index
Git mv
Move or rename a file, a directory, or a symlink
Git show
Show various types of objects
Git tag
Create, list, delete or verify a tag object signed with GPG
Comments
Post a Comment