This repository has been created to build a basic knowledge of git and gitflow.
To follow along with the workshop, you'll need the following:
GitHub Desktop can be downloaded from their website.
If'd you'd prefer a terminal environment, git can be downloaded from their website.
To properly handle pull requests, you'll want a GitHub account. Sign up here.
The workshop was built using a React application, meaning you'll need NodeJS installed. Download NodeJS here
From the original repository, click the Fork
button to create your own copy.
From your git client, find the forked repository and clone it to begin working on it.
Open a terminal in the folder that you cloned the repository to. In it, run
npm install
to pull in all needed dependencies. Then run
npm start
to run the application. It should be available on localhost:3000
in your browser.
- Open a pull request for the
feature/add-counters
branch to thedevelop
branch via the Pull requests tab. - Review the changes that will be made.
- Merge the pull request into the
develop
branch.
- Update the
develop
branch locally to include your new changes - Create a new branch
feature/update-title
- Edit the title
Counter
incomponents/NavBar.js
to whatever you would like and save your changes - Create a new commit describing your changes
- Push the new branch to the remote
- Follow the steps you did before to create a pull request to develop
- Open a pull request for the
feature/delete-counter
branch to thedevelop
branch via the Pull requests tab. - Notice you have a merge conflict, which means you can't auto merge
- On your local machine, merge
develop
intofeature/delete-counter
and handle the changes - Push the changes to
feature/delete-counter
- Merge your pull request
- Follow the instructions you've done before, but this time merge
develop
tomaster