git - 本地代码上传远程仓库

  1. git 初始化
git init
  1. 添加所有文件
git add .

3.commit 文件 ,commit之后才能查看 "branch -a"本地分支,否则无显示

git commit -m "init"
  1. 连接远程仓库
git remote add origin ssssssss.git
  1. 上传数据,push 之后才能查看"branch -r"远程分支,否则无显示
git push origin master
posted @ 2019-11-26 18:03  gggggggxin  阅读(117)  评论(0编辑  收藏  举报