Skip to content

Shared Repository Model

James Dunn edited this page Sep 8, 2017 · 9 revisions

The Shared Repository Model

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

Pull requests

We have a protected master, so a pull request is necessary to begin the process toward merging code.

  1. On the Github team repository page, select the Pull requests tab.
  2. Click the green "New pull request" button. Note how this operation takes you to udacity/CarND_Capstone. Don't worry.
  3. 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.
  4. 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):

New pull request

  1. 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.
  2. Enter an appropriate title and comments regarding your updates.
  3. 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.)
  4. You are ready to push the green "Create pull request" button!

Create pull request

Clone this wiki locally