Last active
March 27, 2017 11:14
-
-
Save dcinzona/88b3e1df80e2dd2e93d344b837e68a49 to your computer and use it in GitHub Desktop.
Git command to not track deleted files
This file contains hidden or 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
| #!/bin/bash | |
| for i in `git status | grep deleted | awk '{print $2}'`; do git update-index --assume-unchanged $i; done |
This file contains hidden or 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 --no-pager diff --name-status targetBranch sourceBranch @{1.day.ago} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment