Last active
August 29, 2015 14:11
-
-
Save ph4un00b/5bf3bb7b48f6f656ad66 to your computer and use it in GitHub Desktop.
unix commads to safe my ass
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
# remove all deleted files | |
* git ls-files --deleted -z | xargs -0 git rm | |
# compress directory | |
$ tar -zcvf project.tar.gz /the/path | |
# uncompress directory | |
$ tar -zxvf project.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment