Created
September 11, 2013 12:33
-
-
Save vladimir-e/6522942 to your computer and use it in GitHub Desktop.
Git workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # start on task | |
| git checkout dev | |
| git pull | |
| git checkout -b branchname | |
| # work & commit | |
| # send to central repo everyday | |
| git push origin branchname | |
| # start merging | |
| git checkout dev | |
| git pull origin dev | |
| git checkout branchname | |
| git rebase dev | |
| # fixing conflicts | |
| git status | |
| git add | |
| git rebase --continue | |
| # update on central repo | |
| git push origin branchname -f | |
| # review | |
| git checkout dev | |
| git pull | |
| git branch -D branchname | |
| git checkout branchname | |
| git rebase dev | |
| # == ветка обязана наложиться без конфликтов git diff dev | |
| # == изучаем разницу от dev или общим диффом, или git log dev..HEAD | |
| # == смотрим какие коммиты были между dev'om и текущей веткой == если всё хорошо, делаем | |
| git checkout dev | |
| git merge --no-ff branchname | |
| git push origin dev | |
| git push origin :branchname | |
| git branch -d branchname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment