Difference between revisions of "Git checkout master"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
  [[.gitignore]]: needs merge
 
  [[.gitignore]]: needs merge
 
  error: you need to resolve your current index first
 
  error: you need to resolve your current index first
 +
 +
git checkout master
 +
error: [[pathspec]] 'master' did not match any file(s) known to git
  
 
== Related ==
 
== Related ==
 
* <code>[[git reset --merge]]</code>
 
* <code>[[git reset --merge]]</code>
 +
* <code>[[git checkout]] master && [[git pull]]</code>
 +
* <code>[[git checkout main]]</code>
  
 
== See also ==
 
== See also ==
 
* {{git checkout}}
 
* {{git checkout}}
* {{git}}
 
  
 
[[Category:Git]]
 
[[Category:Git]]

Latest revision as of 14:39, 6 February 2023

git checkout master
Branch 'master' set up to track remote branch 'master' from 'origin'.
Switched to a new branch 'master'
git checkout master
.gitignore: needs merge
error: you need to resolve your current index first
git checkout master
error: pathspec 'master' did not match any file(s) known to git

Related[edit]

See also[edit]

Advertising: