1.git: patch does not apply
git apply --ignore-space-change --ignore-whitespace mychanges.patch
2.Get current branch(in Bash)
git branch | sed -n '/\* /s///p'
3.配置user信息
[androidyue@androidyue shell_works]$ git config --global user.name "Andrew Wallace"
[androidyue@androidyue shell_works]$ git config --global user.email "andrewallanwallace@gmail.com"
4.~/.ssh/config权限
chmod 600 ~/.ssh/config
5.List all untracked files
git ls-files --other --exclude-standard
6.Set vim as git default Text Editor
git config --global core.editor vim