Git本地项目上传到远程仓库

版权声明:欢迎转载,转载请注明出处 https://blog.csdn.net/weixin_44649870/article/details/88537055
  • 进入项目首目录
    git init   #初始化仓库
    git add .  
    git commit -m "提交"   # 提交代码
    git remote add xxx git@仓库地址
    
  • 复制自己的公钥,添加到远程仓库
  • push代码
    git push xxx master
    或者是
    git push -f xxx master
    

猜你喜欢

转载自blog.csdn.net/weixin_44649870/article/details/88537055