Skip to content

Instantly share code, notes, and snippets.

@xnull
Created September 25, 2018 18:24
Show Gist options
  • Save xnull/7e0b57cf2fe4e40b0ebc6605597642ef to your computer and use it in GitHub Desktop.
Save xnull/7e0b57cf2fe4e40b0ebc6605597642ef to your computer and use it in GitHub Desktop.
https://gist.github.com/n00neimp0rtant/9515611
@PavelZaytsev
Copy link

PavelZaytsev commented Feb 29, 2020

git push --force <- If git complains about fatal: The current branch $BRANCHNAME has no upstream branch. Do git push --set-upstream origin $BRANCHNAME.
Instead do: git push --set-upstream origin $BRANCHNAME --force.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment