branch

how to use nested branches through git-svn

前提是你 提交于 2019-12-04 05:10:59
our svn server has a trunk called Dev and Branches live in /Branches/Release/1.0/ /2.0/ /2.3.4/ i cloned it with something like git svn clone -T Dev ... -b Branches ... when I run git branch 2.1 remotes/Release/2.1 i get: fatal: Not a valid object name: 'remotes/Release/2.1'. How do I refer to the remote branch? Do I need to re-clone with different args? VonC As mentioned in " How do I import svn branches rooted in different directories into git using git-svn? ", you need to grab all the nested branch during the initial import: [svn-remote "svn"] url = svn://svnserver/repo fetch = trunk:refs

Branching with Mercurial SCM

荒凉一梦 提交于 2019-12-04 04:53:37
So right now I'm learning Ruby on Rails, and I'm working through the book "Agile Web Development with Rails". I've also decided that I want to give Mercurial a go, because I've read up on distributed SCM's, and it seems like an ideal situation. I still, however, prefer to push my code remotely to my Linux VPS just incase my hard drive decides to take a dive. So, my question is specific to branching in Mercurial. Right now I've got a remote repository set up and I can push changes over SSH easily (hell I even set up an Nginx FastCGI site that lets me push, too). What I'd like to do, however, is

Script to merge 2 git branches automatically?

北慕城南 提交于 2019-12-04 04:28:44
My git repository has 2 branches: master and develop. I want a script that merges all changes from develop to master automatically. I used Jenkins: The Git plugin clones the repository and then this script (the 'version' variable is a job parameter) is run: # merge git checkout -b develop origin/develop git checkout master git merge -Xtheirs --squash develop -m "v${version}" # commit git commit -m "v${version}" # tag git tag v${version} -m "v${version}" # push git push origin v${version} I tried it on a test repository and it fails with: git merge -Xtheirs develop CONFLICT (delete/modify):

Workflow for multiple SVN branches in IntelliJ IDEA

谁说我不能喝 提交于 2019-12-04 04:27:01
I'd like to easily switch between SVN trunk and one or a few feature branches using IntelliJ IDEA, preferably being able to work on multiple branches concurrently. I have some "local" configuration like database settings for integration tests and debug-logging enabled that I'd like to keep using and not commit to SVN. What are the pros and cons of the various options, is there one way which easily beats the others? Here are some possible approaches I can think of, any more?: Using the "SVN - Update Directory" to swap out the current branch for another. Won't allow working on multiple branches

Git branching / rebasing good practices

时光毁灭记忆、已成空白 提交于 2019-12-04 03:47:57
I have a following scenario: 3 branches: - Master - MyBranch branched off Master for the purpose of developing a new feature of the system - MyBranchLocal branched off MyBranch as my local copy of the branch MyBranch is being rebased against and pushed to by other developers (who are working on the same feature as I am). As the owner of the MyBranch branch I want to keep it in sync with Master by rebasing. I also need to merge the changes I make to MyBranchLocal with MyBranch. What is a good way to do that? Couple of possible scenarios I tried so far: I. 1. Commit change to MyBranchLocal 2.

Rename a committed to branch in Mercurial

…衆ロ難τιáo~ 提交于 2019-12-04 03:21:36
Mercurial - What are the steps involved to accomplish the rename of a branch after it has been created and committed to (both locally and in the central repo). For example, I've created a branch called Zelda and then committed and pushed to a central repository. I now want to change the name of the branch to Triforce. Is there an extension that accomplishes this? What might be the long way in addition to any extension solution? Helgi The short answer is no . The long answer is, Mercurial branches are names attached to changesets. If you have several changesets committed to the branch zelda and

mercurial - see changes on the branch ignoring all the merge commits

家住魔仙堡 提交于 2019-12-04 03:02:50
I have a branch that was developed for a long period of time. During the development default branch was merged into that branch several times. I would like now to review all the changes done on that branch ignoring merges, to decide whether it is safe to merge it to default. I tried hg diff -r "branch('myBranch') - merge()" but it still shows changes introduced by merges. Also tried following this How to show the diff specific to a named branch in mercurial but hg diff -r "branch('myBranch') - branch('default')" still bring changes introduced by merges. The problem with your commands is that

Git常用命令

筅森魡賤 提交于 2019-12-04 02:21:30
Git常用命令 前阵子在字节跳动广告创意中心实习的时候,发现自己对Git不是很精通。因此写下这篇博客,作为一份备忘录,记录本人经常使用的Git命令操作。 git config git config --global user.name "xx" git config --global user.email "xxx@example.com" git config -l 查看配置信息 解决Github 每次上传都要输入用户名和密码 git branch git branch 查看所有本地分支 git branch -r 查看所有远程分支 git branch -a 查看本地分支+远程分支 git branch xx 创建新分支 git branch -d xx 删除分支 git branch -v 查看各个分支最后一个提交信息 git branch --set-upstream branch-name origin/branch-name 将branch-name分支追踪远程分支origin/branch-name git branch -u origin/xxx 设置当前分支跟踪远程分支origin/xxx git branch -vv 查看本地分支和远程分支的跟踪关系 git remote git 添加心的远程仓库,删除点现在的 git remote -v 列出远程仓库的详细信息

TortoiseHg: Push Branch

五迷三道 提交于 2019-12-04 02:03:54
I am working on some bugs in our code base and I have created separate branches for each bug. I have rebased one of the branches on top of default. I generally use the mercurial plugin for Eclipse and I would do a push (when I am in the default branch). This pushes my changes on the default branch. I tried to do the same thing with TortoiseHg. When I press push, the client complains that I am about to create remote heads/create new branches on the server. Is there some way to push only changes on one branch using TortoiseHg? Thanks for your answers! Tim Henigan The easiest way to do this is

ClearCase: How do I find which version I branched off from?

扶醉桌前 提交于 2019-12-04 01:52:30
问题 For a given file, say I branched off from /main/2 and do my development in that branch newBranch . cleartool diff -pred would compare my loaded version ( /main/newBranch/LATEST ) to /main/2 . Which clearcase command would I pass either the file name or /main/newBranch and would return /main/2 ? I'm just trying to find which version -pred selects, but I can't find out how anywhere! FOLLOW UP: Say I checked the file in and now I'm in version /main/newBranch/3 . How can I still compare it to