随笔分类 - GIT
摘要:I am trying to clone a repository, my OpenSSH is set up correctly and I can do everything fine in Git Bash. But when I put in the git@ address in Sour
阅读全文
摘要:Repository size limits By Justen Stepka, Product Manager on May 30, 2014 In order to improve and maintain the overall performance for everyone who use
阅读全文
摘要:类似的一个问题是项目根目录下可能有logs一类的目录,我们希望他人把仓库clone下来的时候能够已经携带了这个目录,但又不希望让这个目录中的日志文件进版本库。之前看到一些项目用了一种比较 ugly 的做法:在logs下建立一个.gitkeep空文件(git 无法版本控制没有任何文件的空目录),然后再...
阅读全文
摘要:How to create .gitignore fileI need to add some rules to my.gitignorefile, however, I can't find it in my project folder. Isn't it created automatical...
阅读全文
摘要:git提供了文件忽略系统,当对工作区某个目录或文件设置了忽略后,在执行status查看状态时,被忽略的文件即使存在也不会显示出来。这样我就可以把那些不需要上传,不需要保留的文件或目录忽略掉(比如一些动态生成的log,或者编译出来的文件等等)。对于忽略文件,git提供了3种方式(我们组的大神又告诉我了...
阅读全文
摘要:国内常用的开源代码开源中国http://git.oschina.net/ 支持git淘宝http://code.taobao.org/ 支持svn京东https://code.jd.com/ 支持git新浪http://sae.sina.com.cn/ 支持svnCSDNhttps://code.c...
阅读全文
摘要:Git的文件主要处于三种状态,分别是staged,modified,committed。Git文件流转有三个区域,分别是工作区域、索引区域、本地数据区域。要修改对一个文件进行操作,首先要看下这个文件的状态。工作目录下面的所有文件都不外乎这两种状态:已跟踪或未跟踪。已跟踪的文件是指本来就被纳入版本控制管理的文件,在上次快照中有它们的记录,工作一段时间后,它们的状态可能是未更新,已修改或者已放入暂存区。而所有其他文件都属于未跟踪文件。它们既没有上次更新时的快照,也不在当前的暂存区域。初次克隆某个仓库时,工作目录中的所有文件都属于已跟踪文件,且状态为未修改。下面的这张表充分说明了不同状态间的切换。针
阅读全文
摘要:http://www.cnblogs.com/lwme/archive/2012/12/25/configuring-git-server-and-client-on-windows.html]选择Git服务器部署策略找了一圈,发现如下方法来架设Git服务器:Bonobo Git Server:http://www.chodounsky.net/bonobo-git-server/需要IIS6+/.net 4/asp.net MVC 3,官方提供了比较详细的安装说明,但据说问题不少WebGit.NET:https://github.com/otac0n/WebGitNet/wiki/Getti
阅读全文
摘要:https://github.com/github/gitignore/blob/master/Delphi.gitignore*.dcu*.~*~*.local*.identcache__history*.drc*.map*.exe*.dllbin/*Win32/
阅读全文
摘要:https://github.com/github/gitignore/blob/master/VisualStudio.gitignore## Ignore Visual Studio temporary files, build results, and## files generated by popular Visual Studio add-ons.# User-specific files*.suo*.user*.sln.docstates# Build results[Dd]ebug/[Rr]elease/x64/build/[Bb]in/[Oo]bj/# Enable &quo
阅读全文
摘要:下载最新版本Git Extensions http://code.google.com/p/gitextensions/downloads/listGit Extensions 2.46 Windows installer, complete including MSysGit and KDiff3https://gitextensions.googlecode.com/files/GitExtensions246Setup.msi安装Git Extensions /KDiff / Gitcheck : Install MsysGitcheck : Install KDiff下载安装torto
阅读全文