美文网首页
本地项目关联github

本地项目关联github

作者: Aklan | 来源:发表于2018-08-27 18:21 被阅读0次

1 新建远程仓库,假设路径为https://github.com/aklanfan/****
2 本地文件夹内

// git init 
// git add -A
// git commit -m ''
// git remote add origin https://github.com/aklanfan/**** 
    
 // 如果远程仓库为空的
// git push-u origin master

// 如果远程仓库不为空的
// git pull --rebase origin master
// git push origin master

// 之后就可以正常push代码了

相关文章

网友评论

      本文标题:本地项目关联github

      本文链接:https://www.haomeiwen.com/subject/clmtwftx.html