Github collaboration
2 min readFeb 19, 2020
--
STEP ONE
- Make a fork of this repo on your Github
STEP TWO
- Clone the repo on your computer
git clone repo on your github
STEP THREE
- Go into the app folder
cd foldername
STEP FOUR
- add the remote upstream to connect to the main repo
git remote add upstream repo name(link you copied to clone)
To confirm do: git remote -v
- now you have two remotes on your local computer: origin and upstream STEP FOUR
- make sure you are on the master branch
git checkout master
- Get the current version of both on the main repo and push to your forked
git pull upstream master && git push origin master
- Create a new branch to work on. Name this in a precise manner. I prefer name\feature;
git checkout -b lawrence\update-readme
STEP FIVE
- Do some work and stage to git add the file you changed
- In this case
git add README.md
- Commit the work you staged to git to save it permanently git commit -m “message of what you did”
- In this case
git commit -m "update contributing part of README.md
- Push the new branch to the remote repo on GitHub git push -u origin branch you created
- in this case
git push -u origin lawrence\update-readme
STEP SIX
- Create a pull request
- This is for asking for your changes to be included in the main repo
- Go to your GitHub … to the repo you forked
- Click on the compare and pull request.
- To create a pull request. Use markdown symbols as used below
# Title of what you did
## subtitle or short description
- To make points
- More points
# Screenshots
- drag and drop images to show the outputs of your changes
- this makes it easier to verify your changes
STEP SEVEN
- sit, relax, and wait for your pull request to be accepted.
- You did well.