Git
Last updated
Last updated
Links:
Cheat sheet: https://github.com/trufa/git-cheatsheet
Git Reference: http://gitref.org/index.html
Play this: https://github.com/Gazler/githug
中文教程: 史上最浅显易懂的Git教程 and 猴子都能懂的GIT入门
Topics:
How to Fork boilerplate to other branch, see examples from: https://github.com/koistya/react-static-boilerplate/tree/master
# merge from staging
git merge origin/staging
# add this to .zshrc
# usage: newUS sprint15/US-12345
function newUS() {
git checkout -b feature/$1 --no-track origin/staging
}
# create PR on bitbucket from current branch to feature/paycard-staging
# you should publish the branch first: git push -u first
git reset --soft "HEAD^"
git stash
git merge origin/feature/paycard-staging
git stash apply
git add .
git commit
~/.gitconfig
[alias]
ac = !git add -A && git commit -am
s = status