Skip to content

Instantly share code, notes, and snippets.

@vladimir-e
Created September 11, 2013 12:33
Show Gist options
  • Select an option

  • Save vladimir-e/6522942 to your computer and use it in GitHub Desktop.

Select an option

Save vladimir-e/6522942 to your computer and use it in GitHub Desktop.
Git workflow
# 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