-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Information about git commands for contributing to other repositories #31
Comments
The following command can be used to create a new branch with the updates from upstream by replacing the text
|
Have testet this on windows with rust-snake, and it worked. Also the file gl.es has been renamed to gl_back_end.rs.
Some commands that reduces many merge commits:
|
Question: Should collaborators accept their own pull requests, or should this be left up to the maintainers of each individual repo? |
@RDeckers Self merge is encouraged, assuming you know what you are doing, see PistonDevelopers/piston#674 |
The upstream remote should point to the original repository which you like to contribute to. After you do local commits you can pull from upstream with the command
This will update your master with commits from upstream and then apply your commits on top of them. Now you can push to your Github fork and then send a pull request.
This will merge your commits and open them for editing so you can write a new commit message.
Squashing commits
If you need to squash the last 2 commits, you write:
git reset --hard HEAD~2
git merge --squash HEAD@{1}
Then you can write a new commit message.
If you get a conflict when trying to merge, you can use:
git push --force origin master
The text was updated successfully, but these errors were encountered: