forked from udacity/CarND-Capstone
-
Notifications
You must be signed in to change notification settings - Fork 15
Shared Repository Model
James Dunn edited this page Sep 8, 2017
·
9 revisions
Create a branch in our Github master repository by clicking on the Branch button and typing a branch name.
To clone that branch on your local machine:
$ git clone -b my-branch-name https://github.com/level5-engineers/system-integration.git
Checkout a branch...
$ git checkout
Work on your code, then...
$ git add [files]
$ git commit
or
$ git commit -a
and add a commit message. That commit is now in your local repository.
To push it to the team repository, run
$ git push origin my-branch-name
We have a protected master, so a pull request is necessary to begin the process toward merging code.
- On the Github team repository page, select the Pull requests tab.
- Click the green "New pull request" button. Note how this operation takes you to udacity/CarND_Capstone. Don't worry.
- CRITICAL: From the first drop-down button (base fork), select our repository "level5-engineers/system-integration" This will update the screen to indicate that you are now back on the team repository.
- Now, select your branch name from the second drop-down button. You should see something similar to the following (with your own branch name and commits):
- Almost there! Next, as seen in the image above, click the green "Create pull request" button. The form will change to something similar to the image below.
- Enter an appropriate title and comments regarding your updates.
- Then click the "gear" icon next to the word Reviewers on the right side panel and select the Everyone group. (These instructions are subject to change, i.e. to specific team-members in the future, but let's experiment.)
- You are ready to push the green "Create pull request" button!