Difference between revisions of "Git: upstream"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<code>[[git push --set-upstream]]</code>
 
  
<code>[[git push --set-upstream origin master]]</code>
+
--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 push --set-upstream origin feature/newbranch
+
  --set-upstream-to
 +
* <code>[[git branch --set-upstream-to=origin/main main]]</code>
 +
* <code>[[git branch --set-upstream-to]]=origin/<branch> main</code>
  
<code>[[git branch --set-upstream-to=origin/main main]]</code>
+
--unset-upstream
 
+
* <code>[[git branch --unset-upstream]]</code>
<code>[[git branch --set-upstream-to]]=origin/<branch> main</code>
 
 
 
<code>[[git branch --unset-upstream]]</code>
 
  
 
== Related ==
 
== Related ==
 
* <code>[[git push -u origin master]]</code>
 
* <code>[[git push -u origin master]]</code>
 +
* <code>[[git checkout -b]]</code>
  
 
== See also ==
 
== See also ==
 
* {{git push}}
 
* {{git push}}
 
* {{git branch}}
 
* {{git branch}}
* {{git}}
 
  
 
[[Category:Git]]
 
[[Category:Git]]

Latest revision as of 02:04, 21 March 2023

Advertising: