-1

Bitbucket has a feature to exclude files from the new pull request and I'm wondering if there is a similar feature in GitHub?

Scenario:

  • I have a Branch A that has changes in .travis.yml I pushed those
  • changes and create a PR I need to merge all changes in this branch
  • except the changes in .travis.yml file.
mike
  • 1,233
  • 1
  • 15
  • 36
IslamTaha
  • 1,056
  • 1
  • 10
  • 17
  • Does this answer your question? [Pull Request, ignore some file changes](https://stackoverflow.com/questions/28703140/pull-request-ignore-some-file-changes) – Daemon Painter Jun 11 '20 at 10:30
  • @DaemonPainter No it does not as I'm looking for a plug-and-play solution not a work around – IslamTaha Jun 11 '20 at 11:31

1 Answers1

0

No, there is no such feature in GitHub (to the best of my knowledge confirmed by a quick google search).

The best alternative, excluding the proposed duplicate question for using a workaround, is to refer to this blog page, stating that:

Previously, if you wanted to use GitHub to remove files from a pull request, you’d need to switch to the pull request branch and look for the individual file to delete it. Now, if you have write permission, you can click on the ‘trash’ icon for a file right in the pull request’s “Files changed” view to make a commit and remove it.

I haven't tested this method, but I feel like it is somehow related to the rejected "alternative workaround".

Daemon Painter
  • 3,208
  • 3
  • 29
  • 44