???????????Щ????git????????÷???????????Щ????????
??????????????????漰???...
?????????????????
????1??git???????????
????2??github????????SSHkey??
????3??????GitHub?????????????????????
????Git???????????
??????Mac?°??Git
??????????????mac??????????Xcode???????????????2?????????Git??
????Xcode -> Preferences -> Downloads -> Command Line Tools -> Install
?????????а??Xcode????????????Git?????????homebrew?????
???????????????????????
???????--global?????????????????????Щ???
????$ git config --global user.name "Your Name"
????$ git config --global user.email "email@example.com"
????????Git????
????· ????????汾?? $ git init
????· ??????/??????? ???汾?? $ git add .??.??????????????μ????б??????????????????????в?????
????· ??????汾?? $ git commit -m "xxxxxx"
????· ???? $ git reset --hard HEAD^
????· ??????? git checkout -- xxxxx????????????????????git commit??git add???????
????· ?????? git rm xxxx
????GitHub???????
????SSHKey????

????1.???????????μ?.ssh????????????id_rsa.pub????????????????SSH Key?????????Xcode??????????????????
????2.???GitHub????Account settings -> SSH Keys -> Add SSH Key???????渴?????????????????д??????Title????????檔
????????????????????????
????1.??GitHub?????汾???????????
????2.???????? git clone ?汾????
????3.???????????汾???н????????????
????4.?????????????git add . -> git commit -m "xxx" -> git push origin master ???????????????????GitHub??
?????????????????????
???????????????SSH Key??GitHub??SSH Key?????????????
??????????????Щ????
????????????????
????defaults write com.apple.finder AppleShowAllFiles -bool true