Reputation: 15605
I will like to perform a pull and merge request but also I would like to exclude some files from this pull request.
Example: a.py b.py c.py
I would like to peform a pull request and merge except b.py
file.
What is the easiest way to accomplish this?
[edit] the file is not committed it yet.
Upvotes: 8
Views: 17421
Reputation: 31
Try pulling all the files and reverse the files to a specific commit. Then push your changes if you want. You can also stack your changes, pull and then apply your stack
Upvotes: 0
Reputation: 30157
Commit a.py
and c.py
, git stash
the rest, perform the request, then git stash pop
to restore your b.py
Upvotes: 4
Reputation: 90276
Make two branches from where you are right now, for example my-pull-request
and other-change
.
Commit a.py and c.py to my-pull-request
, and b.py to other-change
. Push the my-pull-request
branch to Github, and create the pull request.
Upvotes: 4