
Svn Git 版本控制
candyguy242
这个作者很懒,什么都没留下…
展开
-
Ubuntu使用svn命令行创建分支 遇到svn: SSL is not supported错误
Ubuntu使用svn命令行创建分支 遇到svn: SSL is not supported错误这主要是因为在编译svn源码的时候,没有加上--with-ssl选项,导致不支持https加密协议。解决办法(以svn1.6.13为例):1、下载svn1.6.13源码,并解压,得到subversion1.6.13目录,因为在ubuntu下系统缺少一些库文件,还需要一个相应的包,下载subv原创 2012-03-25 23:36:30 · 2799 阅读 · 0 评论 -
git技巧:删除在本地的但在远程库中已经不存在的分支
[plain] view plaincopy$ git remote show origin 原文:http://blog.youkuaiyun.com/xhl_will/article/details/8450193可以查看远程库的一些信息,及与本地分支的信息。有时候可能遇到如下情况[plain] view plain转载 2013-10-23 18:13:22 · 3136 阅读 · 0 评论 -
Is it possible to alias a branch in Git?
You can rename the master branch trunk as Greg has suggested, or you can also create a trunk that is a symbolic reference to the master branch so that both git and svn users have the 'main' branch tha转载 2013-12-24 18:24:07 · 801 阅读 · 0 评论 -
Git 内部原理 - Git References
9.3 Git 内部原理 - Git ReferencesGit References你可以执行像 git log 1a410e 这样的命令来查看完整的历史,但是这样你就要记得 1a410e 是你最后一次提交,这样才能在提交历史中找到这些对象。你需要一个文件来用一个简单的名字来记录这些 SHA-1 值,这样你就可以用这些指针而不是原来的 SHA-1 值去检索了。转载 2013-12-24 18:19:40 · 2231 阅读 · 0 评论 -
.gitignore用法
git 可以管理所有文件的变更, 但并不是所有文件都有意义。大部分二进制文件没有意义 比如说 VC 工程的 Debug 和 Release 文件夹下的文件, 或者 java 项目的 bin 文件夹中的 class 文件, 这些文件都是基于源代码生成的, 只要有源代码就能生成出来,所以版本管理的时候应该忽略它们。有些文本文件也没有意义 比如说 VC 工程中的 .p转载 2014-06-24 10:50:30 · 1535 阅读 · 0 评论 -
git reset 之 soft mixed hard选项的区别
译注:为了避免丢失本地的修改以及originalHEAD,建议在进行reset操作之前,在本地创建一个新的branch,在新的branch上面进行reset,以保证master分支永远处于originalHEAD以下为转发的正文The reset command. Confusing. Misunderstood. Misused. But itdoesn’t need to转载 2015-05-27 10:27:22 · 6078 阅读 · 1 评论 -
Git提交时发生SSL certificate problem错误的解决方法
这两天,不知道为什么,用Git提交代码到服务器时,总出现SSL certificate problem: unable to get local issuer certificate while accessing错误。在网上找了一下,发现解决的方法有以下几个:方法一:如果你是用命令行提交的,可以用以下命令设置临时环境变量GIT_SSL_NO_VERIFY。Windows下:L转载 2015-05-27 12:03:55 · 2792 阅读 · 0 评论 -
git忽略已经被提交的文件
正确的做法应该是:git rm --cached logs/xx.log,然后更新 .gitignore 忽略掉目标文件,最后git commit -m "We really don't want Git to track this anymore!"具体的原因如下:被采纳的答案虽然能达到(暂时的)目的,但并非最正确的做法,这样做是误解了 git update-index 的含义,而且转载 2015-06-17 10:44:13 · 497 阅读 · 0 评论 -
Git仓库完整迁移 含历史记录
如果你想从别的 Git 托管服务那里复制一份源代码到新的 Git 托管服务器上的话,可以通过以下步骤来操作。1). 从原地址克隆一份裸版本库,比如原本托管于 GitHub。git clone –bare git://github.com/username/project.git2). 然后到新的 Git 服务器上创建一个新项目,比如 GitCafe。3). 以镜像推送的方式上传代码到 GitCafe转载 2015-05-22 18:12:54 · 22865 阅读 · 0 评论 -
The Configuration File – “Branch” Section
Commands used in this section:git clonegit fetchgit mergeThe “branch” Section Of The Config FileLet’s look at the config file for the git client that did the git clone git://repohost/project转载 2013-07-08 15:07:15 · 824 阅读 · 0 评论 -
The Configuration File – “remote” Section – Git Config
The Configuration File – “remote” Section – Git ConfigCommands used in this section:git clonegit fetchgit mergegit branchGit and Remotes: The Config fileIn previous sections you’ve see转载 2013-06-06 18:19:31 · 1020 阅读 · 0 评论 -
How to undo the last Git commit?
Undoing a commit is a little scary if you don't know how it works. But it's actually amazingly easy if you do understand.Say you have this, where C is your HEAD and (F) is the state of your files.原创 2013-05-28 18:10:21 · 1386 阅读 · 0 评论 -
GIT分支管理是一门艺术
原创文章属于《Linux大棚》博客,博客地址为http://roclinux.cn。文章作者为 rocrocket。为了防止某些网站的恶性转载,特在每篇文章前加入此信息,还望读者体谅。===[正文开始]原文链接:http://www.nvie.com/posts/a-successful-git-branching-model/原文作者:Vincen转载 2013-01-24 11:16:21 · 434 阅读 · 0 评论 -
Eclipse上GIT插件EGIT使用手册
原文:http://blog.youkuaiyun.com/laizhenhai88/article/details/7234974EGit是Eclipse上的Git插件,官方内容参看http://wiki.eclipse.org/EGit对版本控制和GIT的介绍可以参看文档《Git简介》 Git简介WindowsXP下搭建GIT服务器RHEL下搭建GI转载 2013-02-18 11:30:09 · 525 阅读 · 0 评论 -
使用EGIT管理项目的一点心得
在使用Eclipse的Egit插件进行项目开发管理的过程中,发现一些容易让人困惑和出错的地方。我们以两个分支master和test(test是从master分支新建的)为例:1、新建文件最终commit到哪个分支,就属于该分支中的内容举例来说:Egit在展示分支文件时,不仅会将分支中已有的内容展示出来,还会将在另一个分支新建的,但没有commit过(只add to index也原创 2013-02-18 15:29:51 · 629 阅读 · 0 评论 -
神奇的git stash
开发人员常常遇到这种情况:花了几天时间一直在做一个新功能,已经改了差不多十几个文件,突然有一个bug需要紧急解决,然后给一个build测试组。在Git问世之前基本上靠手动备份,费时且容易出错。git stash命令简而言之就是帮助开发人员暂时搁置当前已做的改动,倒退到改动前的状态,进行其他的必要操作(比如发布,或者解决一个bug,或者branch,等等),之后还可以重新载入之前搁置的改转载 2013-02-19 18:31:18 · 401 阅读 · 0 评论 -
Git常用操作命令
Git常用操作命令收集:1) 远程仓库相关命令检出仓库:$ git clone git://github.com/jquery/jquery.git查看远程仓库:$ git remote -v添加远程仓库:$ git remote add [name] [url]删除远程仓库:$ git remote rm [name]修改远程仓库:$ git remote set-url转载 2013-04-15 14:53:28 · 812 阅读 · 0 评论 -
Git Tutorial
Git TutorialThis tutorial explains the usage of the distributed version control system Git via the command line. The examples were done on Linux (Ubuntu) but should also work on other operating syst转载 2013-05-08 17:14:59 · 1507 阅读 · 0 评论 -
git merge 中使用 ours theirs
You're going to pull some changes, but oops, you're not up to date:> git fetch origin> git pull origin masterFrom ssh://gitosis@example.com:22/projectname * branch master -> FETCH_转载 2013-05-23 17:41:23 · 8354 阅读 · 0 评论 -
git忽略对已入库文件的修改
一、关于.gitignore 和 excludes这两个文件的只针对尚未提交到配置库的文件才起作用。而对于已经提交的文件是不起作用的。由此可见,这两个文件的初衷是用于排除不希望上传入库的文件。像编译产生的临时文件等。但是,我们经常有这样一种情况。有个文件,我们必须入库,大家一起共享,但是呢。每个人本地的配置又是因自己本地的环境而异。这样的话,这个文件就很崩溃了。你要入库,通过.转载 2015-06-10 13:53:29 · 2323 阅读 · 0 评论