How to remove a file from PR -Git

by Deepak Dhakal 14. October 2017 03:49

Let's say if you have three files but you want to not merge a File using PR. There is a way.

Switch to the branch

$ git checkout YourBranch

Override from the master:

git checkout origin/master -- src/main/java/yourfile.jsp

Commit and push it to the remote:

git commit -m "Removed a modified file from pull request"
git push origin YourBranch



Powered by BlogEngine.NET
Original Design by Laptop Geek, Adapted by onesoft