-
Notifications
You must be signed in to change notification settings - Fork 21
How To
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
- Add UpStream
git remote add upstream https://github.com/CollabCodeTech/training-frontend.git
- Pull UpStream Branch
git pull upstream develop
- 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
- Update Your Remote Fork
git push origin develop --force
- Update Your Local Repo from Origin
git fetch origin
- Checkout Upstream Develop Detached Branch
git checkout upstream/develop
- Create a new Local Branch
git checkout -b Feature/<branchname>
- Push your local Branch to Origin
git push -u origin Feature/<branchname>