Skip to content

Instantly share code, notes, and snippets.

@jacekbj
Created May 10, 2020 16:46
Show Gist options
  • Save jacekbj/33ef30b3103ff03edf5c03ce2c72c831 to your computer and use it in GitHub Desktop.
Save jacekbj/33ef30b3103ff03edf5c03ce2c72c831 to your computer and use it in GitHub Desktop.
Git tricks

List changed files

git log --stat

Push force but fail if it would overwrite somebody's else changes:

git push --force-with-lease
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment