Skip to content

Instantly share code, notes, and snippets.

@chnirt
Created July 15, 2022 05:34
Show Gist options
  • Save chnirt/66ecb7490f767c9f1da51c2d5d6c94c6 to your computer and use it in GitHub Desktop.
Save chnirt/66ecb7490f767c9f1da51c2d5d6c94c6 to your computer and use it in GitHub Desktop.
Git cheatsheet

When you commited your own code to remote then revert before commit:

git reset --hard HEAD~1

Push new code to override remote server:

git push --force origin

Reset old file after you change and commit:

git checkout develop -- ios/Podfile.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment