-
Notifications
You must be signed in to change notification settings - Fork 29
Git workflow
Denis Koronchik edited this page Dec 14, 2016
·
4 revisions
To initialize your repo do:
- make fork from
https://github.com/ostis-dev/sc-machine
- clone your fork to your machine and prepare
git clone [email protected]:yourlogin/sc-machine.git
cd sc-machine
git config --global user.name "Your Name"
git config --global user.email [email protected]
git remote add upstream [email protected]:ostis-dev/sc-machine.git
To update your master from upstream
use:
git fetch upstream
git checkout master
git merge upstream/master
git push origin master
To rebase your branch to master:
git checkout yourbranch
git rebase master
If you have any problems, then:
- redo
git rebase --abort
- use
git rebase
instead ofmerge
. More documentation about this command This command just try to apply your commits (from current branch to commits in specified branch)