Get In Touch: Difference between revisions

imported>Ixxie
No edit summary
imported>Makefu
No edit summary
Line 51: Line 51:
git push $YOUR_GITHUB_NAME submit/your-topic-name
git push $YOUR_GITHUB_NAME submit/your-topic-name
</syntaxhighlight>
</syntaxhighlight>
goto github.com/your_name -> create pull request
goto [httpsgithub.com/nixos/nixpkgs] -> push 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 <code>git merge master</code>.
You can "git commit --amend" fixes and "git push -f" your branch.
You can <code>git commit --amend</code> fixes and <code>git push -f</code> your branch.
You can always switch back to master by "git checkout master".
You can always switch back to master by <code>git checkout master</code>.


For long living topic branches you may want to read [[Nixpkgs_and_TopGit]] which allows to squash many changes so that patches will always be easy to review.
For long living topic branches you may want to read [[Nixpkgs_and_TopGit]] which allows to squash many changes so that patches will always be easy to review.