git - 本地代码上传远程仓库
时间:2019-11-26 18:25:15
收藏:0
阅读:78
- git 初始化
git init
- 添加所有文件
git add .
3.commit 文件 ,commit之后才能查看 "branch -a"本地分支,否则无显示
git commit -m "init"
- 连接远程仓库
git remote add origin ssssssss.git
- 上传数据,push 之后才能查看"branch -r"远程分支,否则无显示
git push origin master
原文:https://www.cnblogs.com/gggggggxin/p/11937415.html
评论(0)