eclispe提交代码到git

来源:互联网 发布:卖金蝶软件 编辑:程序博客网 时间:2024/06/05 04:10

1、选择你的工程TestProject;
2、右键—Team—share project
3、创建一个本地仓库,名字和路径自己写;
(取消打勾use or create reposity in parent folder of project;然后选择create ;输入路径和名字)
4、勾选你的工程
5、finish
6、选择要排除的文件夹(bin—右键–team–ignore)
7、提交
选择你的工程–右键–team–commit写上注释–勾选你要提交的文件—-选择commit and push—-uri就写上你的git地址比如http://git@192.168.1.40/linux/test.git
8、protocol这里选择http
9、输入你的用户名和密码(在自己的git网站注册的),点击next;
10、sorceof ref选择master;destination也选择master;点击add all braches
11、finish 搞定

说明:master是分支,你可以建立其他分支;commit是到本地仓库,push是到远程仓库;

原创粉丝点击