Difference between revisions of "Git push -v"

From wikieduonline
Jump to navigation Jump to search
Line 9: Line 9:
 
  state now, use  
 
  state now, use  
 
     [[git push origin]] HEAD:<name-of-remote-branch>
 
     [[git push origin]] HEAD:<name-of-remote-branch>
 +
 +
 +
[[git status]]
 +
[[HEAD]] detached from origin/your-branch-name
 +
[[nothing to commit, working tree clean]]
  
  

Revision as of 09:31, 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>


git status
HEAD detached from origin/your-branch-name
nothing to commit, working tree clean


Related

See also

Advertising: