Created
August 31, 2020 14:21
-
-
Save vanleantking/9c4edc567a79821c8d3f1b1e686841d3 to your computer and use it in GitHub Desktop.
git branch command
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
create new branch | |
-- git checkout -b [branch_name] | |
delete branch local | |
-- git branch -d [branch_name] | |
delete remote branch | |
-- git push origin --delete [branch_name] | |
merge branch master remote into feature branch | |
-- git checkout [feature_branch] | |
-- git pull origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git remote prune origin