Last active
January 2, 2018 13:47
-
-
Save jaynarayan89/b70d79dd18eae2e067c97feb29f18322 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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