美文网首页
将本地已有的项目推送至Github

将本地已有的项目推送至Github

作者: 滕的世界 | 来源:发表于2017-10-27 15:59 被阅读29次

将本地已有的项目推送至Github上

1. git init 
2. git commit -m “first commit” 
3. git remote add origin git@github.com:your_own_git_proj 
4. git push -u origin master  (失败提示pull,就加上 -f 参数)

常见问题

1.保证ssh_key已经添加
2.push失败提示pull,就加上-f参数重试

相关文章

网友评论

      本文标题:将本地已有的项目推送至Github

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