adds two more use cases for git-push

This commit is contained in:
Daniel Senff
2014-03-28 10:40:40 +01:00
parent c92c84e2df
commit a5ea995780

View File

@@ -2,10 +2,18 @@
> Push commits to a remote repository > Push commits to a remote repository
- Publish local changes on a remote location - Publish local changes on a remote branch
`git push {{REMOTE-NAME}} {{LOCAL-BRANCH}}` `git push {{REMOTE-NAME}} {{LOCAL-BRANCH}}`
- Publish local changes on a remote branch of different name
`git push {{REMOTE-NAME}} {{LOCAL-BRANCH}}:{{REMOTE-BRANCH}}`
- Remove remote branch
`git push {{REMOTE-NAME}} :{{REMOTE-BRANCH}}`
- Remove remote branches which don't exist locally - Remove remote branches which don't exist locally
`git push --prune {{REMOTE-NAME}}` `git push --prune {{REMOTE-NAME}}`