eclipse使用git管理代码

share project
1.先提交到本地  

2.commit

3.git服务器新建项目

4.push 到远程(强制初始化或先拉取后push)

5.pull
branch.master.merge=refs/heads/master
remote.origin.url=http://*.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*




clone project




git command
$ git init
$ git pull url master:master

$ dir  查看有哪些文件夹

$ git rm -r --cached target  删除target文件夹
$ git commit -m '删除了target'  提交,添加操作说明

$ git push -u origin master 将本次更改更新到github项目上去



git中tag与release的创建以及两者的区别
http://www.jianshu.com/p/79ecf4fe5079

猜你喜欢

转载自newjava-sina-cn.iteye.com/blog/2366150