I'm using the NSDate-Extensions plugin in my iOS Xcode project. The master repo has some errors which seems to be fixed in two Pull Requests:
These requests are still open and not accepted to the master repo. How can I add these to my local repo in a Git-way? It would be fine, if my local repo gets update, if their Fork gets updated later:
Go to your repository on GitHub and you'll see a button “Compare & pull request” and click it. Please provide necessary details on what you've done (You can reference issues using “#”). Now submit the pull request.
Create Pull Request Now if you open a public repository you get this: After clicking on Compare & pull request you get: GitHub will alert you that you are able to merge the two branches because there is no competing code. You should add in a title, a comment, and then press the “Create pull request” button.
You can pull the requests from the command line without adding remotes:
git pull https://github.com/erica/NSDate-Extensions +refs/pull/6/head
If you are not already sure you want to do that, then you might want to check out that branch first with:
git fetch https://github.com/erica/NSDate-Extensions +refs/pull/6/head:refs/origin/pull/6
The advantage of this compared to using the patch files is that git gets the actual commits. So git can see when master was previously merged into the pull request. The patch file is completely unaware of such differences.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With