Pull Requests - biswajitsundara/gitdoc GitHub Wiki

Delete file from pull request

Lets say you have accidentally committed log file and created the pull request

  • These files are generated in your branch develop and don't exist in master
  • Switch to your branch -> delete the file & commit it
  • Please note the commit history will be there
git checkout develop
git rm app.log
git add --all
git commit -m "cleanup"
git push -u origin develop

Remove updates from a file in pull request

Lets say you have made some updates and committed a file dbconfig.json

  • Now you want to remove the file from the pull request
  • Means you want to remove the updates made to the file
  • So switch to your branch -> overwrite the file from master branch
  • Please note the commit history will be there
git checkout develop
git checkout origin/master -- src/main/java/dbconfig.java
git commit -m "cleanup"
git push -u origin develop
⚠️ **GitHub.com Fallback** ⚠️