git命令:
查看有几个分支:
git branch -a
切换分支:
git checkout 分支名称
下载项目:
git clone url
拉取项目:每次提交代码之前都需要,相当于更新代码
git pull
查看那些文件发送了变化:
git status
给本地提交代码:
git add 文件名
写注释:
git commit -m "注释"
配置全局变量:
git config --global user.email 注册的邮件名称
git config --global user.name 注册的用户名
给远程提交代码:
git push
--2019-04-12 13:05:39