Say I have this pull request and I want to download it as if it was its own separate project. How do I go about doing that? I don't see any button for that functionality.
For that, go to your GitHub, go to the repository and then to the clone or download option, and copy the URL. Coming back to GitHub, paste the URL with Git pull command. All the contents from the repository have been pulled to our local repository. The contents can be found in the desired directory.
Once you've committed changes to your local copy of the repository, click the Create Pull Request icon. Check that the local branch and repository you're merging from, and the remote branch and repository you're merging into, are correct. Then give the pull request a title and a description. Click Create.
You can download a snapshot of the tree at that commit over here. This is an exported tarball so you won't have any history. Is that what you're looking for? You can get to this by first looking at the commits he wants you to pull and then picking the latest one in the list. Navigating to this URL will give you the diff (i.e. it's examining the commit object rather than actual tree). You can now simply change the commit
in the above url to tree
or click on the "Browse code" button. Once you do that, there's a "Download ZIP" button on the right which allows you to download the tree.
If you want complete history, then you need to fetch mlwelles changes. You can do this by going to the mlwelles:master
repository over here and adding that as a remote to your own local clone using git remote add mlwelles [email protected]:mlwelles/AFOAuth2Client.git
. Then you can fetch the changes he's asking you to merge using git fetch remote master
. The changes will be available in FETCH_HEAD
. You can either view them using git checkout FETCH_HEAD
and git log
(or whatever), view the diffs using git diff FETCH_HEAD
(against your current branch) or finally integrate the changes he's asking you to using git merge FETCH_HEAD
. Once you do this, you can push the changes to your own repository using git push origin master
(assuming the original repository is added as origin
).
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