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:


# Create a github account and fork nixpks/nixos/... repository.
=== Fork Nixpkgs on Github ===


# On you host, create a new remote location:
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>


#  git commit your change
=== 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


# verify everything is ok - no unexpected dangling files git does not know about yet:
=== Check status ===
 
Verify everything is ok - no unexpected dangling files git does not know about yet:
git status
git status
</syntaxhighlight>
</syntaxhighlight>


# submitting your change, push to your repository:
=== 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 gituhb.com/your_name -> create pull request
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".