本地项目上传git远程仓库
2017-06-06 17:13
274 查看
一路坎坷的为了实现将本地代码上传至github上,各种博客各种参考翻阅,自己按照他人的实现去操作,总是操作失败,记录此次操作过程。
github 官网 ,在settings里面设置ssh-key
命令: ssh-keygen -t rsa -C "22@qq.com" --- 22@qq.com 为github登录账号
找到id_rsa 所在的目录,打开id_rsa.pub 并复制内容粘贴到github settings 中ssh-key
check 命令: ssh -T git@github.com
//创建git 远程仓库
登录后在profile 新增仓库git_workspace(自定义)
git init
设置全局配置,区分上传者
git config --global user.name "醉清风"
git config --global user.email "22@qq.com"
//本地仓和git 远程 添加映射(姑且叫映射)
git remote add origin git@github.com:222/git_workspace.git
添加需要上传的工程
git init
git add web
git commit -m 'first commit'
------------
如果远程库不为空,则需要和本地库进行一次同步合并
git push origin master
github 官网 ,在settings里面设置ssh-key
命令: ssh-keygen -t rsa -C "22@qq.com" --- 22@qq.com 为github登录账号
找到id_rsa 所在的目录,打开id_rsa.pub 并复制内容粘贴到github settings 中ssh-key
check 命令: ssh -T git@github.com
//创建git 远程仓库
登录后在profile 新增仓库git_workspace(自定义)
git init
设置全局配置,区分上传者
git config --global user.name "醉清风"
git config --global user.email "22@qq.com"
//本地仓和git 远程 添加映射(姑且叫映射)
git remote add origin git@github.com:222/git_workspace.git
添加需要上传的工程
git init
git add web
git commit -m 'first commit'
------------
如果远程库不为空,则需要和本地库进行一次同步合并
git pull --rebase origin master
git push origin master
相关文章推荐
- git上传本地项目到远程git仓库(码云)
- 用命令将本地项目上传到git 远程仓库
- 用命令将本地项目上传到git 远程仓库
- 使用git将本地项目上传到git远程仓库
- 用命令将本地项目上传到git 远程仓库
- 用命令将本地项目上传到git 远程仓库
- git上传本地项目到远程github仓库
- 用命令将本地项目上传到git 远程仓库
- git本地项目代码上传至码云远程仓库总结
- git本地文件上传到远程仓库时,本地项目与远成仓库不是同一个项目的BUG
- 用命令将本地项目上传到git 远程仓库
- 用命令将本地项目上传到git 远程仓库
- Git上传本地项目到远程仓库
- 如何利用git将本地项目上传到码市、github等远程仓库
- 用命令将本地项目上传到git 远程仓库
- 使用Ideal上传本地项目至git远程仓库
- 用命令将本地项目上传到git 远程仓库
- 用命令将本地项目上传到git 远程仓库
- 用命令将本地项目上传到git 远程仓库
- 用命令将本地项目上传到git 远程仓库