Github collaboration

  • Make a fork of this repo on your Github
  • Clone the repo on your computer git clone repo on your github
  • Go into the app folder cd foldername
  • 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
  • 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
  • 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
  • sit, relax, and wait for your pull request to be accepted.
  • You did well.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store