Difference between revisions of "Git push -v"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
  git push -v
 
  git push -v
 
  fatal: You are not currently on a branch.
 
  fatal: You are not currently on a branch.
  To push the history leading to the current (detached HEAD)
+
  To push the history leading to the current ([[detached]] HEAD)
 
  state now, use  
 
  state now, use  
 
     [[git push origin]] HEAD:<name-of-remote-branch>
 
     [[git push origin]] HEAD:<name-of-remote-branch>

Revision as of 09:28, 16 November 2022


git push -v
fatal: You are not currently on a branch.
To push the history leading to the current (detached HEAD)
state now, use 
   git push origin HEAD:<name-of-remote-branch>


Related

See also

Advertising: