Intellij IDEA 提交代码到远程GitHub仓库
2014-07-15 15:28
501 查看
转载地址:http://www.rritw.com/a/bianchengyuyan/C__/20140217/428062.html
Intellij IDEA 提交代码到远程GitHub仓库
时间:2014-02-17 13:25来源:Internet 作者:Internet 点击:1228次1.下载github for window http://go.rritw.com/windows.github.com/ 2.设置相关绑定 Settings ——Ve
1.下载github for windowhttp://go.rritw.com/windows.github.com/2.设置相关绑定Settings ——Version Control——Git——Path to Git executable——选择你的安装目录C:\Users\Administrator\AppData\Local\GitHub\PortableGit_0f65d050d0c352fd38a0b25d82ee942deb19ef87\bin\git.exe Test Settings ——Version Control——GitHub Host:github.com Login:账号 Password:密码 Test 3.项目的本地git提交intellij内部集成了git版本控制 所以在本地可以直接进行使用3.1创建本地仓库3.2提交代码到本地git右键项目或者文件 Git——Add——Commit (先add 然后再提交)4.配置远程提交4.1 github上创建仓库4.2 Git Shell中配置远程仓库cd 项目目录 git remote add origin https://github.com/lujianing/ueditor.git git push -u origin master 中间如果有报错 请参考下边的解决方法 1.fatal: remote origin already exists git remote rm origin 2.error: Could not remove config section 'remote.origin' 需要修改gitconfig文件的内容 找到github的安装路径,我是 C:\Users\Administrator\AppData\Local\GitHub\PortableGit_0f65d050d0c352 找到一个名为gitconfig的文件,打开它把里面的[remote "origin"]那一行删掉 重启gitshell 执行上述操作 4.3 Intellij IDEA中进行push/pull右键项目 Git——Repository——Push在开发过程中 我们可以使用本地的git进行版本管理 最后使用push进行远程提交 4.4 多人协作开发在Github 项目的 settings——Collaborators 下可以添加项目成员被添加的用户 可以提交代码到当前项目中 5.另一种简单方法在github上创建仓库后 复制仓库地址 比如 https://github.com/lujianing/demo.git在intelij中 VCS——Checkout from Version Contrl——Git中 粘贴仓库url地址 会从github仓库中拷贝一份项目 然后就可以在本地直接进行git操作 并且可以push到github仓库中 (会提示你输入github的仓库和密码) From:OSChina |
相关文章推荐
- 在 Intellij IDEA 提交代码到远程 Github 仓库的方法
- Intellij IDEA 提交代码到远程GitHub仓库
- IntelliJ IDEA 提交代码到远程GitHub仓库
- Intellij IDEA 提交代码到远程GitHub仓库
- Intellij IDEA 提交代码到远程GitHub仓库
- Intellij IDEA 提交代码到远程GitHub仓库
- Intellij IDEA 提交代码到远程GitHub仓库
- 【转】Intellij IDEA 提交代码到远程GitHub仓库
- 本地代码提交到Git@OSC、github或其他远程仓库的方法
- github新建本地仓库并将代码提交到远程仓库
- 使用git工具提交上传代码到GitHub上或者远程仓库
- 如何使用git命令同步代码到github或提交到多个远程仓库
- 通过git bash向github远程仓库提交代码
- 【git】:将本地代码提交到github远程仓库的简单命令行
- github提交代码无法改变远程仓库路径
- 【转】PhpStorm 提交代码到远程GitHub仓库
- 向Github远程仓库提交项目代码
- 【编程初学者】创建自己的开源项目4-将本地代码仓库的代码提交到远程代码仓库(myeclipse + github)
- git提交代码到多个远程仓库(github.com、git.oschina.net)
- 本地代码提交至gitHub远程仓库的方法