Skip to content

Instantly share code, notes, and snippets.

@ChasManRors
Created April 19, 2017 23:05
Show Gist options
  • Save ChasManRors/287f9ece4badeb4488c747db5f6a667d to your computer and use it in GitHub Desktop.
Save ChasManRors/287f9ece4badeb4488c747db5f6a667d to your computer and use it in GitHub Desktop.
Git is great. It just needs a little understanding.
vmm (fr8_1_sme-FR-58)$ git push
To github.com:ChasManRors/vmm.git
! [rejected] fr8_1_sme-FR-58 -> fr8_1_sme-FR-58 (non-fast-forward)
error: failed to push some refs to '[email protected]:ChasManRors/vmm.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
vmm (fr8_1_sme-FR-58_SAVED3)$ git push -u origin fr8_1_sme-FR-58_SAVED3:fr8_1_sme-FR-58
To github.com:ChasManRors/vmm.git
! [rejected] fr8_1_sme-FR-58_SAVED3 -> fr8_1_sme-FR-58 (non-fast-forward)
error: failed to push some refs to '[email protected]:ChasManRors/vmm.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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment