Skip to content
Saulo Nunes edited this page Apr 11, 2020 · 5 revisions

A Complete List of Helpful Documents in How To Use, Work And Contribute to the Project

Update Your Fork

Steps

  1. Add UpStream
git remote add upstream https://github.com/CollabCodeTech/training-frontend.git
  1. Pull UpStream Branch
git pull upstream develop
  1. Update your Local Develop Repo Branch
git checkout develop
git reset --hard upstream/develop

If you have any conflicts with your local branch, checkout to master and delete local branch develop

git checkout master
git branch -D develop
git checkout develop
git reset --hard upstream/develop
  1. Update Your Remote Fork
git push origin develop --force
  1. Update Your Local Repo from Origin
git fetch origin

Create a New Branch Detached From Upstream

  1. Checkout Upstream Develop Detached Branch
git checkout upstream/develop
  1. Create a new Local Branch
git checkout -b Feature/<branchname>
  1. Push your local Branch to Origin
git push -u origin Feature/<branchname> 
Clone this wiki locally