Difference between revisions of "Git push origin HEAD"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 2: Line 2:
 
     [[git push origin]] HEAD
 
     [[git push origin]] HEAD
  
 +
 +
 +
git push origin HEAD:you_remote_branch_name
 +
To bitbucket.org:gathr1/aws_eks.git
 +
  ! [rejected]        HEAD -> you_remote_branch_name ([[non-fast-forward]])
 +
error: failed to push some refs to 'bitbucket.org:your_org/your_repo.git'
 +
hint: Updates were rejected because a pushed branch tip is behind its remote
 +
hint: counterpart. Check out this branch and integrate the remote changes
 +
hint: (e.g. 'git pull ...') before pushing again.
 +
hint: See the 'Note about [[fast-forwards]]' in '[[git push --help]]' for details.
 +
➜  your_repo git:(95bace6)
  
  
 
{{git push}}
 
{{git push}}

Revision as of 11:09, 27 March 2023

    git push origin HEAD


git push origin HEAD:you_remote_branch_name
To bitbucket.org:gathr1/aws_eks.git
 ! [rejected]        HEAD -> you_remote_branch_name (non-fast-forward)
error: failed to push some refs to 'bitbucket.org:your_org/your_repo.git' 
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
➜  your_repo git:(95bace6)


git push [ -v | --set-upstream | -o | --set-upstream origin master | -u origin main | origin master | -u origin master | --delete master | -u | origin HEAD | --dry-run ], Git: upstream, git push --force

Advertising: