Git是目前世界上最先进的分布式版本控制系统。
Workspace:工作区 Index / Stage:暂存区 Repository:仓库区(或本地仓库) Remote:远程仓库
git config --global user.name “username”
git config --global user.email “email”
ssh-keygen -t rsa –C “youremail@example.com”
git init
git status
git diff filename
cat fileName
git log
git reflog
git add filename
git commit -m “message”
git push -u origin master
git push origin master
git checkout --filename
git branch branchName
git checkout branchName
git checkout -b fenzhiName
git merge fenzhiName
git branch -d fenzhiName
git remote
git remote -v
git remote 远程库链接
git clone 远程库链接
git pull 远程库链接
参考:Git使用教程,最详细,最傻瓜,最浅显,真正手把手教
