这几天复习了一下git,发现真的是忘得差不多了
git提交
在目录中右击 Git Bash Here
- git init 代码初始化
- git add . 添加到缓存
- git commit -m "说明信息" 提交
- git push -u origin 分支名字 提交代码到远程库
git创建本地或远程分支
在目录中右击 Git Bash Here
- git branch 分支
- git branch -a 查看本地和远程
- git branch -D 分支名 除本地无用分支
- git branch -vv 查看本地分支与远程分支关联关系