Editing Git push
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 11: | Line 11: | ||
== Basic commands == | == Basic commands == | ||
− | * <code>[[git push]] | + | * <code>[[git push]]</code> |
* <code>[[git push -v]]</code> | * <code>[[git push -v]]</code> | ||
* <code>[[GIT_SSH_COMMAND]]="ssh -v" [[GIT_TRACE]]=1 git push -vvv -u origin main</code> | * <code>[[GIT_SSH_COMMAND]]="ssh -v" [[GIT_TRACE]]=1 git push -vvv -u origin main</code> | ||
Line 25: | Line 25: | ||
* <code>[[git push origin]] HEAD:master</code> | * <code>[[git push origin]] HEAD:master</code> | ||
* <code>[[git push --tags]]</code> | * <code>[[git push --tags]]</code> | ||
− | |||
== Additional commands == | == Additional commands == | ||
Line 33: | Line 32: | ||
== Examples == | == Examples == | ||
<code>[[git]] push</code> | <code>[[git]] push</code> | ||
− | <code> | + | <code>Everything up-to-date</code> |
+ | |||
[[git push -u]] origin master | [[git push -u]] origin master | ||
Line 44: | Line 44: | ||
* [new branch] master -> master | * [new branch] master -> master | ||
Branch 'master' set up to track remote branch 'master' from 'origin'. | Branch 'master' set up to track remote branch 'master' from 'origin'. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== git push with errors == | == git push with errors == | ||
Line 99: | Line 90: | ||
[[touch]] README.md | [[touch]] README.md | ||
[[git add]] README.md | [[git add]] README.md | ||
− | [[git commit -m | + | [[git commit]] -m "add README" |
git push -u origin master | git push -u origin master | ||
Line 116: | Line 107: | ||
* <code>[[git remote add]]</code> | * <code>[[git remote add]]</code> | ||
* <code>[[git config --global --edit]]</code> | * <code>[[git config --global --edit]]</code> | ||
− | + | [[helm push]] | |
== See also == | == See also == |
Advertising: