Get In Touch: Difference between revisions
imported>Ixxie Merged the Pull Request article into this article. |
imported>Ixxie |
||
| Line 15: | Line 15: | ||
Here's how to create a pull request on GitHub: | Here's how to create a pull request on GitHub: | ||
=== Fork Nixpkgs on Github === | |||
Create a GitHub account and fork nixpkgs/nixos/... repository. | |||
=== Add a remote === | |||
On your host, create a new remote location: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
# add your github clone as remote location: | # add your github clone as remote location: | ||
| Line 24: | Line 28: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Commit your change locally == | |||
Commit your change to your local clone of the repository: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
git add FILE_LIST # eventually use git add --patch | git add FILE_LIST # eventually use git add --patch | ||
git commit | git commit | ||
=== Check status === | |||
Verify everything is ok - no unexpected dangling files git does not know about yet: | |||
git status | git status | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Push to your remote repository === | |||
Submitting your change, push to your repository: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
| Line 41: | Line 51: | ||
git push $YOUR_GITHUB_NAME submit/your-topic-name | git push $YOUR_GITHUB_NAME submit/your-topic-name | ||
</syntaxhighlight> | </syntaxhighlight> | ||
goto | goto github.com/your_name -> create pull request | ||
Why create your own branch? You can follow upstream (master) by running "git merge master". | Why create your own branch? You can follow upstream (master) by running "git merge master". | ||