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 远程库链接