版本管理工具
HaveFunInLinux
这个作者很懒,什么都没留下…
展开
-
GitWeb
本文转载至:http://www.gitchina.org/getting-started/pro-git/gitweb.html现在我们的项目已经有了可读可写和只读的连接方式,不过如果能有一个简单的 web 界面访问就更好了。Git 自带一个叫做 GitWeb 的 CGI 脚本,运行效果可以到 http://git.kernel.org 这样的站点体验下(见图 4-1)。转载 2015-03-05 17:59:39 · 1484 阅读 · 0 评论 -
[小技巧] git 中查看某个文件是什么时候被删除的
转载至:http://www.vogella.com/tutorials/Git/article.html#retrievefiles_finddeletedfile说明:使用 git log -- file40.3. See which commit deleted a file The git log command allows you to转载 2015-07-15 13:07:14 · 13656 阅读 · 0 评论 -
[小技巧] git 是谁弄乱了我的代码?
转载至:http://www.oschina.net/translate/10-tips-git-next-level当事情出错时,先去指责别人是人类的天性之一。如果你的产品服务器挂了,使用git blame命令可以很容易找出罪魁祸首。这个命令可以将文件中的每一行的作者、最新的变更提交和提交时间展示出来。?1git blame转载 2015-07-15 13:22:04 · 1226 阅读 · 0 评论 -
[小技巧] 如何在 git 里查找哪一个 commit 删除了代码的一行
本文转载至:http://stackoverflow.com/questions/4404444/how-do-i-blame-a-deleted-lineIf you know the contents of the line, this is an ideal use case for:git log -S path/to/filewhich shows you com转载 2015-07-15 13:41:21 · 5221 阅读 · 0 评论 -
[小技巧] git 取得两个 tag 之间的 commit
参考:http://stackoverflow.com/questions/5863426/get-commit-list-between-tags-in-gitgit log --pretty=oneline tagA...tagBIf you just wanted commits reachable from tagB but not tagA:git log --pr转载 2015-07-15 14:47:00 · 14691 阅读 · 0 评论 -
[小技巧] git diff 里显示日文
先在命令行执行下面的命令:$ export LANG=ja_JP.UTF-8然后执行 git diff原创 2015-07-30 12:16:33 · 788 阅读 · 0 评论 -
[小技巧] svn: 不能解析 URL
$ svn update .里报svn: 不能解析 URL的错误,这个问题找了网上不少答案都没有解决。用了下面的这样一个回避的方法:直接把文件夹删除后,svn co http://path/to/svn直接重复 checkout 对应的目录,这样就可以了。原创 2015-08-06 12:25:02 · 5835 阅读 · 0 评论 -
git 查看远程分支、本地分支、删除本地分支
转载至:http://blog.it985.com/753.html1 查看远程分支 $ git branch -a * br-2.1.2.2 master remotes/origin/HEAD -> origin/master remotes/origin/br-2.1.2.1 remotes/origin/br-2.1.2.2 remotes转载 2015-11-10 10:33:46 · 3919 阅读 · 0 评论 -
Setting your email in Git
本文转载至:https://help.github.com/articles/setting-your-email-in-git/简述:使用下面的命令设置全局的邮箱。git config --global user.email "[email protected]"使用下面的命令设置本地的邮箱。(仅是当前的repo)git config user.转载 2016-01-04 14:17:48 · 1657 阅读 · 1 评论 -
[小技巧] git: Your branch and 'origin/master' have diverged
本文参考:http://stackoverflow.com/questions/19864934/git-your-branch-and-origin-master-have-diverged-how-to-throw-away-local-com如果不需要保留本地的修改,只要执行下面两步:git fetch origingit reset --hard origin/master转载 2016-01-06 19:27:09 · 13980 阅读 · 1 评论 -
如何找出 git clone 的原始 repository
转载至:http://stackoverflow.com/questions/4076239/finding-out-the-name-of-the-original-repository-you-cloned-from-in-git有两种方式:① 查看 .git/config 的内容:[remote "origin"] fetch = +refs/heads/*:re转载 2015-08-10 10:20:22 · 4708 阅读 · 0 评论 -
[小技巧] git 通过 comment 关键字查找 commit
参考:http://stackoverflow.com/questions/1337320/how-to-grep-git-commit-diffs-or-contents-for-a-certain-word可使用 git log --grepIf you want to find all commits where commit message contains given wor转载 2015-07-15 14:45:06 · 18648 阅读 · 0 评论 -
ClearCase项目管理介绍
摘至:http://www.cnblogs.com/kkdd-2013/p/3900340.htmlVOB(Version Object Base)——版本对象库 VOB是一个特定的数据库系统,其可以①存储有版本的数据;②可以被mount的文件系统;③存储数据的历史版本;④防止数据被非法修改;⑤可以存储数据的类型包括:文件 、目录 VOB中存放的内容都具有版本的概念,这转载 2015-07-06 17:47:15 · 2628 阅读 · 0 评论 -
让你的Git水平更上一层楼的10个小贴士
本文由 伯乐在线 -Lingfeng Ai 翻译自Shaumik Daityari。未经许可,禁止转载!欢迎加入:技术翻译小组,或分享原创到伯乐头条。最近,我们发表了关于Git基础知识和在团队中使用Git的教程。我们之前讨论的那些命令,已经足够让帮助一个开发者在Git世界里生存了。本篇文章,我们将尝试探索如何更有效的管理您的时间以及如何充分使用Git提供的各种功能。注意:本转载 2014-08-18 15:58:16 · 968 阅读 · 0 评论 -
git - 简明指南
本文转载至:http://rogerdudler.github.io/git-guide/index.zh.html安装下载 git OSX 版下载 git Windows 版 下载 git Linux 版创建新仓库创建新文件夹,打开,然后执行 git init以创建新的 git 仓库。 检出仓库执行如下命令以创建一个转载 2014-12-02 09:56:32 · 640 阅读 · 0 评论 -
git clone: fatal: Unable to find remote helper for 'https'
该问题是由 git configure 配置时没有设定原创 2014-08-28 21:33:37 · 13952 阅读 · 2 评论 -
[小技巧] git 清理 repository
使用如下命令可以快速清除 repository 里没有被 git 管理的文件:$ git clean -xdf如果要转载 2014-11-24 14:13:07 · 3014 阅读 · 0 评论 -
在终端上查询git的工具
$ tig原创 2014-03-29 15:43:26 · 973 阅读 · 0 评论 -
Git 两分钟指南
原文:http://www.garyrobinson.net/2014/10/git-in-two-minutes-for-a-solo-developer.html作者: Gary Robinson译文: http://blog.jobbole.com/78999/译者: Lingfeng Ai受到Git五分钟指南的启发,我决定转载 2015-01-19 20:14:58 · 599 阅读 · 0 评论 -
git branch管理常用命令
本文转载至:http://www.2cto.com/os/201307/229235.htmlgit branch管理常用命令 查看本地分支[plain] git branch * dev master *代表当前位于dev分支 查看远程分支[plain] git branch --rem转载 2014-12-16 15:35:46 · 666 阅读 · 0 评论 -
svn 恢复删除的文件
本文转载至:http://stackoverflow.com/questions/497670/whats-a-simple-way-to-undelete-a-file-in-subversionIf you just didsvn rm foo.txtthen you can undo that with simplysvn revert foo.txtIf you转载 2015-03-17 13:41:53 · 2507 阅读 · 0 评论 -
三個使用版本控制系統的建議
From : https://ihower.tw/blog/archives/8076(本文 crossposting 於 ALPHACamp Blog)如果說有什麼是開發軟體專案一定要使用的基礎工具,使用「版本控制系統」應該可以記上一筆。無論是個人或是團隊開發,都可以透過版本控制系統獲得巨大的好處。沒有版本控制系統的話,檔案可能被別人或自己不小心覆蓋或遺失、也不知道是誰因转载 2015-06-29 08:59:26 · 648 阅读 · 0 评论 -
git 中获取短的 commit hash 值
本文摘至:http://www.open-open.com/lib/view/open1328070367499.htmlGit 很聪明,它能够通过你提供的前几个字符来识别你想要的那次提交,只要你提供的那部分 SHA-1 不短于四个字符,并且没有歧义——也就是说,当前仓库中只有一个对象以这段 SHA-1 开头。例如,想要查看一次指定的提交,假设你运行 git log 命令并找到转载 2016-03-21 13:43:36 · 26091 阅读 · 0 评论