forked from ApolloAuto/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1339bb5
commit 1bb4278
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
How to create a pull request | ||
========================== | ||
|
||
You can follow the standard [github approach](https://help.github.com/articles/using-pull-requests/) to contribute code. Here is one sample setup. | ||
|
||
- Fork a new repo with your GitHub username. | ||
- Set up your github personal email and user name | ||
|
||
``` | ||
git config user.name "XXX" | ||
git config user.email "XXX@[XXX.com]" | ||
``` | ||
|
||
- Add Apollo repository as upstream | ||
|
||
``` | ||
git remote add upstream [email protected]:ApolloAuto/apollo.git | ||
``` | ||
|
||
- Create a new branch, make changes and commit. | ||
|
||
``` | ||
git checkout -b "my_dev" | ||
``` | ||
|
||
- Sync up with the Apolloauto/apollo repo | ||
|
||
``` | ||
git pull --rebase upstream master | ||
``` | ||
|
||
- Push local developments to your own forked repository | ||
|
||
``` | ||
git push -f -u origin "my_dev" | ||
``` | ||
|
||
- Generate a new pull request between "Apolloauto/apollo:master" and "forked repo:my_dev" | ||
- Collaborators will review and merge the commit. | ||
|
||
Thanks a lot for your contributions! | ||
|