branch

SVN: Moving repository trunk to another's branch (with history)

会有一股神秘感。 提交于 2019-11-30 18:40:46
I'm working with an SVN setup with a lot of repositories. I'm trying to consolidate some by moving the trunk of one into the branch of another (the old ones are themed versions of the new one, minus some code fixes I'll be applying later, so it makes sense to me). Short version, I want to go from RepositoryA/trunk to RepositoryB/branches/RepAName. Ideally, I'd like to maintain the history. I could do an export -> import, but that loses the history and so it isn't ideal. I can't do a dump via svnadmin, since that seems it would overwrite RepositoryB (or fail, but I'm not about to risk losing

Why would svn merge of a branch with no changes causes untouched files to modify svn:mergeinfo property

无人久伴 提交于 2019-11-30 18:34:51
I have created a branch called "feature3" from my trunk. I make zero modifications to files on the "feature3" branch. There are also no modifications to files on trunk. Using TortoiseCVS (TortoiseSVN 1.6.6, Build 17493 - 32 Bit) against a SVN (version 1.6.3 (r38063)) repo, I initiate a "Merge" with the "Reintegrate a branch" option selected. The output of this command shows 80 files merged. The only thing changed on these files is the svn:mergeinfo property. But why only these 80 files? I have hundreds of other files in the project that didn't have this property changed. Here is an example of

Retroactive named branching in Mercurial

微笑、不失礼 提交于 2019-11-30 18:21:56
Is there a way to associate a bunch of Mercurial changesets with a named branch after they have been committed, i.e. retroactively ? I just wanted to do this, and here’s the solution I found. A year has passed since the question was originally asked, this might explain why I can now find a solution. It has the disadvantage that you create an extra revision in the process, but this wasn’t too bad for me. First, you go back to where you want to create the branch. In my case, I actually wanted to start a new root (because I wasn’t very sensible when I started the repository, but anyways), so I’m

学习Git,这篇文章足矣

女生的网名这么多〃 提交于 2019-11-30 17:55:12
#常用命令 看这个:http://www.ruanyifeng.com/blog/2015/12/git-cheat-sheet.html?bsh_bid=5983510 #-------------------- #初始化,增加版本库 git init #或者直接远程克隆 git clone http:// #-------------------- #加入文件 git add -A #或者--all增加所有,适用第一次初始化,,Git2.0起,all是git add的默认参数,可用git add .代替 git add . #增加新增和修改的,排除删除的 git add -u #增加更新和删除的,排除新增的 git add -i #查看所有修改过或已删除文件但没有提交的文件 git add -h #其他参数可以用这个命令查看 #-------------------- #commit提交到仓库 git commit -m "" #快捷命令可以写成 git ci -m 需要系统设置 #查看commit提交记录 git log --pretty=oneline git log --graph --pretty=oneline --abbrev-commit # 修改上一次的commit git commit --amend #会弹出一个vi修改界面,在最上面修改保存即可 #----

Gitolite restrict access to branch

点点圈 提交于 2019-11-30 16:01:08
I have GITOLITE on my server and I want to configure access to my repository. I want to restrict access to some branches for some users. I try a lot of variants how to configure gitolite.conf file and I didn't find solution how to restrict acces to some branches. 1) @developers1 = user1 @developers2 = user2 repo dbatest RW+ = @developers1 R test = @developers2 - test = @developers2 RW+ = @developers2 When user2 executed command: git push origin test : push succeed In gitolite log I had this lines: http ARGV=user2 SOC=git-receive-pack 'dbatest' FROM=10.65.184.239 6453 pre_git dbatest user2 W

Branch name in build number

元气小坏坏 提交于 2019-11-30 15:31:39
问题 I'm trying to put branch name into build number, but I can't find the right parameter. I'm using build number format : %teamcity.build.branch%.{0} It works, but when it trying to build default branch 'dev', teamcity names it as <default> . How to fix it ? 回答1: I was able to solve this problem by: In my VCS Root - using git - set my Default Branch to: master In my VCS Root - using git - set my Branch Specification to: +:refs/heads/(master) +:refs/heads/(release-*) +:refs/heads/(hotfix-*)

Remove an unreferenced commit from git repository

落花浮王杯 提交于 2019-11-30 15:31:35
问题 I have a git commit history like this: U / A---B---C---D---E master Nothing points to the commit U , but I know its hash. How can I completely remove this commit from my repository as if it never existed? I'm the only person using this repo. I tried using git rebase , but that can either delete parts of a branch or move commits, but doesn't seem to be able to delete a single commit. If I do git checkout <hash> and then git reset --hard HEAD~1 I don't see the the commit anymore. Is it actually

Which way to merge with git?

ⅰ亾dé卋堺 提交于 2019-11-30 15:06:38
Say I have two branches master -- A - - - - - - merge \ / \- develop -- B -- C Now if I want to merge it will be a fast forward, but should I do git checkout develop git merge master or git checkout master git merge develop And what if I have possible conflicts master -- A - D - - - - - -merge \ / \- develop -- B -- C Should I now merge in to develop or into master? This is a bit confusing, so a good explanation would be really appreciated Missing Workflow Tasks First of all, there are a few things missing in your workflow that make it hard to answer your question in a real-world way. For

在git的branch上工作

萝らか妹 提交于 2019-11-30 15:02:32
How to clone all remote branches in Git? First, clone a remote Git repository and cd into it: $ git clone git://example.com/myproject $ cd myproject Next, look at the local branches in your repository: $ git branch * master But there are other branches hiding in your repository! You can see these using the -a flag: $ git branch -a * master remotes/origin/HEAD remotes/origin/master remotes/origin/v1.0-stable remotes/origin/experimental If you just want to take a quick peek at an upstream branch, you can check it out directly: $ git checkout origin/experimental But if you want to work on that

Git: Can I commit my working directory to a new branch without committing it to a current branch?

房东的猫 提交于 2019-11-30 14:40:31
问题 I am working on a project, and had all of my tests passing on the master branch. I then made some changes, and when everything started failing, I realized that maybe I should have made those changes on a different branch. Is there a way I can commit the changes to a new branch without committing them to my master branch, so that the master still has my passing tests? 回答1: Yes, just create the new branch and check it out: $ git checkout -b new-branch Then commit any changes you have. They'll