本地idea项目上传到Git
来源:互联网 发布:公众平台源码搭建 编辑:程序博客网 时间:2024/05/16 04:38
本文参考:http://blog.csdn.net/jabony/article/details/45562445
idea中操作:
- 使用IntelliJ IDEA菜单建立本地Git仓库: VCS -> Import into Version Control -> Create Git Repository;
- 在弹出的的窗口中选择当前项目;
- 提交全部需要管理的文件到新建立的本地仓库master分支;
git命令行操作
- 在Windows中打开命令行窗口cmd,转到当前项目所在目录,例如: cd “D:\projects\TestProject”(假定当前项目名称为TestProject);
说明:在进行下面的操作之前,必须设置Path环境变量,使得Git可执行文件能访问,如:PATH=%PATH%;D:\git\git-1.8.1.2\bin - 在命令行中输入命令: git remote add origin http:// < IP地址:端口号> /服务器相对路径/仓库名
- 再输入命令: git pull –rebase origin master(同步Git)
- 再输入命令: git push origin master
- 然后回到Intellij IDEA环境中在项目上单击右键,选择同步当前项目菜单:Synchronize ‘TestProject’;
- 再次操作Intellij IDEA,在项目上单击右键选择Git相关操作:Git -> Repository -> Branches -> origin/master -> Checkout as new local branch。
0 0
- Intellij IDEA 上传本地项目到Git
- 本地idea项目上传到Git
- git上传本地Intellij idea 项目到git
- git上传本地Intellij idea 项目到github
- git上传本地Intellij idea 项目到github
- git上传本地Intellij idea 项目到github
- 上传本地项目到git
- Git 上传本地项目到Git@OSC
- Idea上传已有项目到git
- 如何将idea项目上传到Git
- git 将本地项目上传到github
- git上传本地项目到github
- 使用Git上传本地项目到oschina
- 上传本地项目到git.oschina.net
- git上传本地项目到github
- Git: 将本地项目上传到gitblit
- 使用Git上传本地项目到oschina
- Git上传本地项目到远程仓库
- laplacian matrix
- 用Weex实现新闻类app详情页是怎样一种体验?
- crazy Rows 2009 Round2 A
- 在Ubuntu中安装锐捷客户端的替代者 mentohust
- BootStrap FileInput 插件上传使用
- 本地idea项目上传到Git
- nmake (一)
- 求两个数的二进制中有多少个不同的bit位
- git 删除本地分支和远程分支、本地代码回滚和远程代码库回滚
- 2016-java基础篇-分页算法
- 理想的程序员
- 类与对象
- Android Studio中使用lambda表达式
- 操作系统ucore lab2实验报告