Last active
November 5, 2019 07:51
-
-
Save shahid163/67542c0e7509dc6c55e56fdc24a938ae to your computer and use it in GitHub Desktop.
all the git commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#for initializing | |
git init | |
#for staging | |
git add -A | |
#for commiting with message | |
git commit -m 'your-message' | |
#for pushing | |
git push origin master | |
#for pulling from remote repository | |
git pull origin master 'repository path' | |
#for moving repository files from staging | |
git reset | |
#for making a branch | |
git branch 'branch-name' | |
#for checking branches | |
git branch | |
#for checking status | |
git status | |
#for logging commits | |
git log | |
#for switching to branch | |
git chekcout 'branch-name' | |
#for removing a file | |
git -rm -r 'file-name' | |
#for showing changes | |
git diff | |
#for viewing information about branches | |
git remote -v | |
#for viewing information about repository | |
git branch -a | |
#for cloning from remote to local | |
git clone 'repository path' 'folder to hold cloned repository' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment