Skip to content

Instantly share code, notes, and snippets.

@fobiasmog
Last active January 16, 2023 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fobiasmog/ecf2e20f1aaf5fcf5626675ac12d7bb8 to your computer and use it in GitHub Desktop.
Save fobiasmog/ecf2e20f1aaf5fcf5626675ac12d7bb8 to your computer and use it in GitHub Desktop.
Git notes

Using not default ssh key

GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa_another" git clone ...
# in project root
git config --local core.sshCommand 'ssh -i ~/.ssh/id_rsa_another'

Reset merge commit

git reset --merge HEAD~1
git reset --merge prev_commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment