Skip to content

Instantly share code, notes, and snippets.

@raymadrona
Last active June 16, 2017 08:39
Show Gist options
  • Save raymadrona/d6ce05c395450f47814a7905569567bd to your computer and use it in GitHub Desktop.
Save raymadrona/d6ce05c395450f47814a7905569567bd to your computer and use it in GitHub Desktop.
git config --global core.autocrlf input
git config --global core.eol lf\
Undo a commit and redo
http://stackoverflow.com/questions/927358/how-to-undo-last-commits-in-git
$ git commit -m "Something terribly misguided" (1)
$ git reset HEAD~ (2)
<< edit files as necessary >> (3)
$ git add ... (4)
$ git commit -c ORIG_HEAD
// Auto complete in bash
http://code-worrier.com/blog/autocomplete-git/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment