3 ms·
1. Click "fork" 2. Type "git clone git@github.com:mygithubusername/projectname.git" 3. cd projectname 4. make changes, and commit. 5. git push origin master
by steveklabnik 16y ago
1. Click "fork"
2. Type "git clone git@github.com:mygithubusername/projectname.git"
3. cd projectname
4. make changes, and commit.
5. git push origin master (master may be optional, or a different branch)
6. Click the 'pull request' button
7. Fill out the form
8. You're done!
Also, git does support the 'mail the author a patch' workflow, too: it's just not what GitHub uses. I _believe_ the kernel is developed this way.
http://www.kernel.org/pub/software/scm/git/docs/git-format-patch.html http://www.kernel.org/pub/software/scm/git/docs/git-format-p...
http://stackoverflow.com/questions/327249/ddg http://stackoverflow.com/questions/327249/ddg
- tedunangst 16y ago1. The fork button is a lot smaller than the git clone url staring right up at me in the middle of the page. 6. Which pull request button on which page? There are several. Yes, I've done this a few times. But the procedure is not internalizable in the same way that "mail patch" is. In particular, the pull requests tab always looks really appealing to me whenever I want to clone a new repo (I'd like to make a request to pull your source, after all). The problem is unrelated to git, I could happily use git with email.
- steveklabnik 16y agoYep, I think this is just a preferences thing. The bug "Pull request" tab implies to me that they're pull requests that are currently pending, since it's in amongst the source, the issues... and since it's a tab. The button implies "start a pull request for upstream" since it's up near several other 'action' buttons. To each his own. TMTOWTDI. :)
- sedachv 16y agoYeah, that's twice as many steps as "email the author a patch." But you're right, there's still nothing keeping you from emailing the author a patch (I've contributed to github-hosted projects that way).
- steveklabnik 16y agoThis is mostly first time setup. After you've done it, it becomes "Commit, type git push, click pull request." Same as "Commit, type 'git format-patch', send email."