Last active
July 30, 2016 10:20
-
-
Save stmswitcher/bf3222df34ef797fccf89da01c90d115 to your computer and use it in GitHub Desktop.
Creates archive with updated git files
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
#!/bin/bash | |
git status | grep -E "^\s+(modified|new\sfile)" | sed -E "s/.+:\s+//" | tar -cvf test.tar -T - --no-recursion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment