push.default
git config --global push.default current
for more info
for remote in `git branch -r | grep -v master `; do git checkout --track $remote ; done
git push --all
git log --graph --oneline
git log --pretty=oneline master | tail -1
git reset --hard xxxx
git rebase -i HEAD~2
git remote -v && git remote remove origin
git remote add origin git@github.com:user/repo.git
git branch | grep 'gnip-' | xargs git br -D
git bisect
to find the problematic commitsgit bisect good <goo_commit>
git bisect good
or git bisect bad
git remote -v
check whether we have an upstream or notgit remote add upstream <origin_git_url>
add an upstream pointing to the origin repogit fetch upstream
git merge upstream/master
git remote show origin
git branch -D the_branch
then
git checkout --track origin/the_branch
git clean -f
git reset HEAD [a file]
git branch -a | grep remotes/*
git commit --amend -m "New commit message"
git push origin <branch_name>
git pull --rebase
git format-patch --stdout HEAD~3
git reset --soft HEAD^
git stash
git merge <branch_name>
git br -d <branch_name>
for localgit push origin <branch_name>
if want to apply to the remoteGood articles about runtime web performance: High Level Explain High Performance Animations Concept WebFundamentals About Performance Performance Checklist Discussion about debouncing scroll...