mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-28 11:22:08 +03:00
83db189282
"upstream" is often used as a synonym for "remote", but we probably should avoid promoting that equivalence, since the terms "upstream" and "downstream" have specific meanings in the context of software dependency, which don't necessarily map with the meanings of "local" and "remote" in the context of computer networks in general (and distributed networks of git repositories in particular).
779 B
779 B
git push
Push commits to a remote repository.
- Send local changes in the current branch to its remote counterpart:
git push
- Send local changes in a given branch to its remote counterpart:
git push {{remote_name}} {{local_branch}}
- Publish the current branch to a remote repository, setting the remote branch name:
git push {{remote_name}} -u {{remote_branch}}
- Send changes on all local branches to their counterparts in a given remote repository:
git push --all {{remote_name}}
- Delete a branch in a remote repository:
git push {{remote_name}} --delete {{remote_branch}}
- Remove remote branches that don't have a local counterpart:
git push --prune {{remote_name}}
- Publish tags that aren't yet in the remote repository:
git push --tags