Skip to content

Instantly share code, notes, and snippets.

@jaynarayan89
Last active January 2, 2018 13:47
Show Gist options
  • Save jaynarayan89/b70d79dd18eae2e067c97feb29f18322 to your computer and use it in GitHub Desktop.
Save jaynarayan89/b70d79dd18eae2e067c97feb29f18322 to your computer and use it in GitHub Desktop.
git add -A stages All
git add . stages new and modified, without deleted
git add -u stages modified and deleted, without new
unstaged file
git reste <filepath>
command to ignore file
This will tell git you want to start ignoring the changes to the file
git update-index --assume-unchanged path/to/file
When you want to start keeping track again
git update-index --no-assume-unchanged path/to/file
change last commit
git commit --amend --no-edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment