Skip to content

Instantly share code, notes, and snippets.

@vanleantking
Created August 31, 2020 14:21
Show Gist options
  • Save vanleantking/9c4edc567a79821c8d3f1b1e686841d3 to your computer and use it in GitHub Desktop.
Save vanleantking/9c4edc567a79821c8d3f1b1e686841d3 to your computer and use it in GitHub Desktop.
git branch command
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
@vanleantking
Copy link
Author

git remote prune origin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment