Skip to content

Instantly share code, notes, and snippets.

@zurgl
Created July 6, 2021 00:36
Show Gist options
  • Save zurgl/9c8ee75fc84d2a99beb9e2b413995125 to your computer and use it in GitHub Desktop.
Save zurgl/9c8ee75fc84d2a99beb9e2b413995125 to your computer and use it in GitHub Desktop.
git push issue

To push a cloned repo when two factor is enable

git remote -v
git remote remove origin
git remote add origin git@github.com:zurgl/example-helloworld.git 
git push --set-upstraem origin Update-to-keypair

to restore a file

git restore --staged src/filename.ext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment