Skip to content

Instantly share code, notes, and snippets.

@rtanglao
Created April 27, 2011 22:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtanglao/945405 to your computer and use it in GitHub Desktop.
Save rtanglao/945405 to your computer and use it in GitHub Desktop.
Roland's Kitsune Git Workflow

setup repo

git clone git@github.com:rtanglao/kitsune.git
git remote add upstream git@github.com:Sancus/kitsune.git
git checkout staging in git 1.7 or git checkout -t origin/staging depending on git version in git 1.6 you need to use git checkout -t origin/staging !
git fetch upstream
git merge upstream/staging

create branch

git checkout -b tb-sidebar  #create and make new branch e.g. tb-sidebar branch

... make changes

git add blah blah
git commit -m "blah"
git push origin tb-sidebar (pushes current branch to new remote tb-sidebar)
...create and send off pull request

once it is approved or denied, delete the branch

git checkout staging
git branch -D tb-sidebar
git push origin :tb-sidebar
and then refetch and re-merge:
git fetch upstream
git merge upstream/staging

goto "create branch"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment