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 1: | Line 1: | ||
− | |||
<code>[[git push]]</code> update remote refs along with associated objects | <code>[[git push]]</code> update remote refs along with associated objects | ||
− | |||
+ | https://git-scm.com/docs/git-push | ||
+ | git push -u origin master | ||
− | + | git push origin master | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Enumerating objects: 3, done. | Enumerating objects: 3, done. | ||
Counting objects: 100% (3/3), done. | Counting objects: 100% (3/3), done. | ||
− | Writing objects: 100% (3/3), | + | Writing objects: 100% (3/3), 245 bytes | 245.00 KiB/s, done. |
− | Total 3 (delta 0), reused 0 (delta 0) | + | Total 3 (delta 0), reused 0 (delta 0) |
− | To ssh://gitlab. | + | To ssh://gitlab.yourdoain.com:2224/project/project_test.git |
* [new branch] master -> master | * [new branch] master -> master | ||
− | |||
− | git push | + | git push -u origin master or git push --set-upstream origin master |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
git push -u origin master | git push -u origin master | ||
ssh_exchange_identification: read: Operation timed out | ssh_exchange_identification: read: Operation timed out | ||
Line 62: | Line 21: | ||
and the repository exists. | and the repository exists. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | 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 | ||
− | |||
− | |||
− | |||
== Related terms == | == Related terms == | ||
Line 109: | Line 31: | ||
* <code>[[git push --follow-tags]]</code> | * <code>[[git push --follow-tags]]</code> | ||
* <code>[[git config]]</code> | * <code>[[git config]]</code> | ||
− | * <code> | + | * <code>git push -o [[merge_request]].create</code> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
− | * {{git | + | * {{git}} |
+ | * {{GitLab}} | ||
+ | |||
+ | |||
[[Category:Git]] | [[Category:Git]] |
Advertising: