Difference between revisions of "Git: upstream"
Jump to navigation
Jump to search
(14 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | --set-upstream | ||
+ | * <code>[[git push --set-upstream]]</code> | ||
+ | * <code>[[git push --set-upstream origin master]]</code> | ||
+ | * <code>[[git push --set-upstream origin]] feature/newbranch</code> | ||
− | [[git | + | --set-upstream-to |
+ | * <code>[[git branch --set-upstream-to=origin/main main]]</code> | ||
+ | * <code>[[git branch --set-upstream-to]]=origin/<branch> main</code> | ||
+ | --unset-upstream | ||
+ | * <code>[[git branch --unset-upstream]]</code> | ||
+ | == Related == | ||
+ | * <code>[[git push -u origin master]]</code> | ||
+ | * <code>[[git checkout -b]]</code> | ||
== See also == | == See also == | ||
− | * {{git}} | + | * {{git push}} |
+ | * {{git branch}} | ||
[[Category:Git]] | [[Category:Git]] |
Latest revision as of 02:04, 21 March 2023
--set-upstream
git push --set-upstream
git push --set-upstream origin master
git push --set-upstream origin feature/newbranch
--set-upstream-to
git branch --set-upstream-to=origin/main main
git branch --set-upstream-to=origin/<branch> main
--unset-upstream
Related[edit]
See also[edit]
git push
[-v
|--set-upstream | -o | --set-upstream origin master
|-u origin main
|origin master
|-u origin master
|--delete master
|-u | origin HEAD | --dry-run
], Git: upstream,git push --force
git branch
,git: upstream
,git branch --delete branch name
,[ --list | -a | -r | -M ]
Advertising: