This procedure should be used when a program that was installed using GIT fails to update. No need to run the commands as root.
1. Change directory to the folder where the program is installed:
cd /home/myapp
2. Remove staged and working directory changes:
git reset --hard
3. Update the program:
git pull
4. All done!
Leave a Reply