从远端仓库拉代码至本地
- 先在本地新建文件夹 (最好路径不要出现中文字眼)
- 调出命令行 cd到当前目录
file = Clone with SSH的链接(前提已经配置好ssh) git clone file
当前目录即可拉取远端仓库的所有代码
本地push代码至远端仓库
- 先git branch查看下本地仓库存在的所有分支
D:\project\rocket_autotest_pc>git branch
* master
2. 创建并切换新分支
git checkout -b wangpeng30
Switched to a new branch 'wangpeng30'
3:将要上传的文件拉取到对应子目录中 分别cd子目录 add文件至待发送区域
4:添加提交注释
git commit -m "第一次提交"
5: git push