Pedro Ivan Lopez
Résumé Projects Tech notes Blog Writings Other About

Git


Back to tech notes index

  • Cheatsheet
  • References

Cheatsheet

List the file names only that changed between two commits

$ git diff --name-status SHA1 SHA2
$ git diff --name-status HEAD HEAD~1

Remove last commit

$ git rebase -i HEAD~2
$ # In editor, remove the line of the commit you want gone
$ git push origin +master # force push

References

  • http://stackoverflow.com/questions/1552340/how-to-list-the-file-names-only-that-changed-between-two-commits

Back to tech notes index

  • lopezpdvn@github.com lopezpdvn
  • lopezpdvn@twitter lopezpdvn
  • PedroIvanLopez@linkedin PedroIvanLopez
  • Email Posts via RSS
  • Email Email
Creative Commons License
Except where otherwise noted, content on this site by Pedro Ivan Lopez is licensed under a CC-BY-NC-ND 4.0 international license.

Send anonymous feedback