Difference between revisions of "Git switch"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
* https://git-scm.com/docs/git-switch
 
* https://git-scm.com/docs/git-switch
 +
Switch to another branch
  
  git switch -
+
[[git]] switch BranchToChange
 +
 +
[[git switch -]]
  
  [[git switch -c]] main
+
  git switch --create main or [[git switch -c]] main
  
 
+
== Related ==
[[git checkout]]
+
* <code>[[git checkout]]</code>
[[git restore]]
+
* <code>[[git restore]]</code>
 +
* <code>[[git branch]]</code>
 +
* <code>[[Move existing, uncommitted work to a new branch in git]]</code>
  
 
== See also ==
 
== See also ==
 
* {{git switch}}
 
* {{git switch}}
* {{git}}
 
  
 
[[Category:Git]]
 
[[Category:Git]]

Latest revision as of 08:04, 9 July 2024

Advertising: