Git基本工作流程¶
下面的命令是日常Git工作流必须要使用到的命令,多敲几遍掌握它们。
- git clone repo
- git config –global user.name “Your Name”
- git config –global user.email “email@example.com”
- git status
- gitk
- git pull origin master
- git add .
- git commit -m “comment” -a
- git push origin master
下面这些命令偶尔使用,知道是做什么用的即可。
- git remote -v # 获取远程仓库的目标地址