Created
July 10, 2019 13:38
-
-
Save anisur3036/3e444fdce672375da4d8a071aa41f9b4 to your computer and use it in GitHub Desktop.
Git cheat sheet
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
#edit something in git repo | |
git checkout -b newBranch | |
#first creating new branch | |
#then add/edit/delete some file | |
#then if is ok then switch to master branch | |
#and merge it | |
git merge newBranch | |
#after merge(successfully), delete contact branch | |
git branch -D newBranch | |
#in local repo/machine get the update version | |
git pull | |
#see all branch | |
git branch -a | |
#delete remote branch | |
git push origin --delete branch | |
#upload a new branch on remote repo | |
git push origin -u newBranch | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment