git config --global user.name = "kevin chen"
git config --global user.email = "uncochen@hotmail.com"
git config --global core.editor = "phpstorm"
git init "project"
git status
git add "filename"
git add .
git commit -m "give to name of this commit"
git commit -a -m "msg"
git status -s
git log --oneline
git diff
git diff --cached
- differences in staging
git remote add origin git@github.com:kevin416/yepos.git
git push origin master (upload files to git hub)
重置git
rm -rf .git
git remote -v
git remote rm 'name'
设置sublime 命
$ sudo rm -rf /usr/local/bin/subl
$ sudo ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin
$ subl .
如果在git commit里要exit
Shift+Q
:wq
Generate SSH
ssh-keygen -t rsa -C "your-email@example.com"
cat ~/.ssh/id_rsa.pub| pbcopy
Show the Hidden File
defaults write com.apple.finder AppleShowAllFiles NO