develop via a single branch
t branch -m {{branch}}
git fetch origin
git rebase origin/master -i
git push origin {{branch}}
create a new branch
git checkout -b {{branch}}
checkout remote branch
git checkout -b {{branch}} origin/{{branch}}
<!– more –>
merge branch to master
git checkout master
git merge {{branch}}
delete branch
git branch -D {{localBranch}}
git push --delete origin {{remoteBranch}}
rename repo
git remote -v
// View existing remotes
// origin https://github.com/user/repo.git (fetch)
// origin https://github.com/user/repo.git (push)
git remote set-url origin https://github.com/user/repo2.git
// Change the 'origin' remote's URL
add tag
git tag {{tag}}
git push --tags
add tag for a history commit
// Set the HEAD to the old commit that we want to tag
git checkout {{leading 7 chars of commit}}
// temporarily set the date to the date of the HEAD commit, and add the tag
GIT_COMMITTER_DATE="$(git show --format=%aD | head -1)" git tag -a {{tag}} -m "{{commit message}}"
// set HEAD back to whatever you want it to be
git checkout master
git push --tags
delete tag
git tag --delete {{tag}}
git push --delete origin {{tag}}
gh-pages
http://{{group}}.github.io/{{repo}}/
npm add owner
npm owner add {{name}}