Last active
September 27, 2018 08:27
-
-
Save Sekiphp/7404f58215125644ede0fc501cd0ad53 to your computer and use it in GitHub Desktop.
Cleanup of remote developer repository
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 | |
clear | |
git fetch | |
git reset --hard | |
git checkout master | |
git checkout -- . | |
git clean -fd . | |
rm -rf media | |
git pull | |
ln -s ../../URL/TO/MEDIA media | |
clear | |
git status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
echo "alias updaterepo=/home/update_repo.sh" >> ~/.bashrc (.bash_profile)