1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-03 20:35:32 +02:00

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
- Publish local changes on a remote location
- Publish local changes on a remote 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
`git push --prune {{REMOTE-NAME}}`
`git push --prune {{REMOTE-NAME}}`