Skip to content

Instantly share code, notes, and snippets.

@dcinzona
Last active March 27, 2017 11:14
Show Gist options
  • Select an option

  • Save dcinzona/88b3e1df80e2dd2e93d344b837e68a49 to your computer and use it in GitHub Desktop.

Select an option

Save dcinzona/88b3e1df80e2dd2e93d344b837e68a49 to your computer and use it in GitHub Desktop.
Git command to not track deleted files
#!/bin/bash
for i in `git status | grep deleted | awk '{print $2}'`; do git update-index --assume-unchanged $i; done
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