Skip to content

Latest commit

 

History

History
84 lines (58 loc) · 2.5 KB

1-setup.md

File metadata and controls

84 lines (58 loc) · 2.5 KB

1. Setup

In order to contribute you need to create a GitHub Fork of this project. When you Fork a project on Github you create a copy of the repository under your personal account. You can then make contributions to your own copy without them affecting the original.

🏃 Activities

Follow along with the activities below to get yourself ready for the rest of the walkthrough.

1 - Fork a Source Repository and Add a collaborator

One Team Member

Fork the source repository:

  1. Visit https://github.com/neiloconnor/git-flow-exercise
  2. Click the "fork" button, and choose your personal GitHub account if prompted

Add a contributor:

  1. Read the Github guide on adding collaborators https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/inviting-collaborators-to-a-personal-repository
  2. Add the other team member as a collaborator on your copy of the repository
  3. Make sure they accept the invitation email before proceeding

2 - Clone your Fork

All Team Members

Clone this project to your local machine. Note that this is cloning your forked copy, not the original:

$ cd Z:/my/parent/directory
$ git clone https://github.com/your-username/git-flow-exercise.git
# clone the fork repository from GitHub

$ cd repository-name
# change working directory to the cloned repository

View existing branches:

$ git branch
# show local branches
* master

$ git branch -r
# show remote branches
origin/HEAD -> origin/master
origin/develop
origin/master

4 - Configure Local Branches

All Team Members

By now you should have noticed that you do not have a local develop branch

$ git branch
* master

Checkout the develop branch to get a local copy:

$ git checkout develop 

You should now be ready to move on to the rest of the walkthrough. If you'd like to see the repository you've created on your local machine in GitHub desktop, you can add a repository by choosing a local path.

Next

Next we will walk through the process of creating feature branches, publishing changes to GitHub, and making a request to merge changes into the source repository using a Pull Request.

Go

Quick Links