Skip to content

Instantly share code, notes, and snippets.

@Sekiphp
Last active September 27, 2018 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sekiphp/7404f58215125644ede0fc501cd0ad53 to your computer and use it in GitHub Desktop.
Save Sekiphp/7404f58215125644ede0fc501cd0ad53 to your computer and use it in GitHub Desktop.
Cleanup of remote developer repository
#!/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
@Sekiphp
Copy link
Author

Sekiphp commented Aug 2, 2018

echo "alias updaterepo=/home/update_repo.sh" >> ~/.bashrc (.bash_profile)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment