-
Notifications
You must be signed in to change notification settings - Fork 4
Home
conmurphy edited this page May 20, 2019
·
18 revisions
git checkout -b <your-branch-name> = moves you to the branch listed
git add <files>
git commit -m <commit-message>
git push origin <your-branch-name>
If the pull request does not show any errors, you can merge it from there.
- Find out which branches have already been merged (won't show the master branch)
git branch --merged| egrep -v "(^\*|master)"
- Tag branch to make it retrievable at a later stage if needed
git tag archive/<branch-to-delete>
- Delete branch locally
git branch -d <branch-to-delete>
- Delete branch in the central Github site (none local)
git push --delete origin <branch-to-delete>
git status
git log