git - 本地代码上传远程仓库
- 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
git init
git add .
3.commit 文件 ,commit之后才能查看 "branch -a"本地分支,否则无显示
git commit -m "init"
git remote add origin ssssssss.git
git push origin master