Skip to content

Instantly share code, notes, and snippets.

@andreasvirkus
Created August 10, 2017 13:43
Show Gist options
  • Save andreasvirkus/bee8dfa687ea34fcbe6f1ed69a28a283 to your computer and use it in GitHub Desktop.
Save andreasvirkus/bee8dfa687ea34fcbe6f1ed69a28a283 to your computer and use it in GitHub Desktop.
# Just so I'd remember how to add files that you forgot to a local commit
# Maybe one day I'll learn... x_x
# edited file-that-i-remember.txt
git add file-that-i-remember.txt
git commit
# realize you forgot a file
git add file-that-i-forgot.txt
git commit --amend --no-edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment