Tuesday, April 12, 2016

git reset remote commits

git pull

git checkout [BRANCH_NAME]

git reset --hard [TARGET_COMMIT_SHA]

git push -f origin [BRANCH_NAME]

This should force deleting the commits newer than TARGET_COMMIT_SHA in the BRANCH_NAME.

No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...