Permanently remove few branch from commits from remote branch

 If you want to delete for example the last 2 commits, run the following command to remove the changes from the file system (working tree) and commit history (index) on your local branch:

git reset --hard HEAD~2

git push --force

https://stackoverflow.com/questions/3293531/how-to-permanently-remove-few-commits-from-remote-branch

No comments:

Post a Comment

Pages