1、
团队中的同事怎样加入这个项目
关键的地方
1>
如果没有创建分支的按钮,在sourcetree创建
2>
3>提交代码的时候注意,提交的地址是你的队友的地址,不是你的地址,要不然push上的内容队友看不到
参考网址:
http://www.cnblogs.com/schaepher/p/4933873.html#second
https://gist.github.com/belm/6989341
http://xiaocong.github.io/blog/2013/03/20/team-collaboration-with-github/
http://blog.leezhong.com/tech/2011/02/25/git-workflow-with-blog-demo.html
http://www.yangzhiping.com/tech/github.html#q1
2、
创建的步骤: 1、在github上创建一个项目,并利用sourcetree把项目指定到项目中的硬盘中,2、修改gitignore文件(过滤文件),然后提交和推送(即commit push)3,在硬盘中开始愉快的写项目了,或者把自己写了一部分的代码粘贴到此目录中,注意不要覆盖已经有的文件。
创建团队github项目的时候需要注意的情况:
.gitignore文件:
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
url = http://120.27.154.98:3000/zhangqi/Meiyaoni.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[user]
name = zhangqi
email = zhangqi@163.com
[branch "developer"]
remote = origin
merge = refs/heads/developer
[http]
postBuffer = 524288000
参考链接:
这几个链接就是在说怎样清除缓存文件,按照上面的“创建的步骤”这些链接也就可以略过了。
http://www.gitguys.com/how-to-remove-a-file-from-git-source-control-but-not-delete-it/?lang=zh
3.在github怎样时时的获取别人的代码
补上必要说明,然后点击下方send pull request按钮。
很快你就看到评论区最下方有个鲜绿色高亮的按钮,继续点就是。
这样就同步成功!!!!!!
参考链接:
http://www.360doc.com/content/13/0410/18/2569758_277424931.shtml
4 github chunked解决
http://www.cnblogs.com/duwei/p/4370908.html
其实就是在 .git文件夹中的 config中加入 这句话
[http] postBuffer = 524288000