Tag: git-svn

Which remote branches are my local git-svn branches bound to?

I have the following .config file in my clone repo using git-svn: [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true hideDotFiles = dotGitOnly [svn-remote “svn”] url = https://svn.domain.com:8443/svn fetch = trunk:refs/remotes/trunk branches = branches/{some_branch}:refs/remotes/branches/* When I do git branch -a, I get: $ git […]

Git blame on reorganized SVN repository

git blame isn’t showing me the all history of a SVN repository which had its layout reorganized. I’m using git-svn to access a SVN repository. The SVN repository used to have a structure with a vast tree of folders to hold the many projects. Last year I reorganized and flattened the layout into a more […]

migrate svn to subdirectory of git

I’d like to replace my svn repository with git. Unfortunately I can’t do this in one shot and to cut a long story short, I need to move an svn repository, with history, into a subdirectory of a pre-existing git repository. So I currently have: svn: svn1/ svn2/ git: git1/ .git/ gita/ And I want: […]

git svn clone > git svn rebase > Unable to determine upstream SVN information from working tree history

I am trying to keep a read-only checkout of ,http://googleappengine.googlecode.com/svn/trunk/python into a git repository, which is stored as remote in github. 1) $git svn clone http://googleappengine.googlecode.com/svn/trunk/python. 2) $git svn rebase — Unable to determine upstream SVN information from working tree history So I started reviewing the .git/config file to fix this problem, and this where […]

How do I migrate a flat svn repo to git repo

I have a flat svn repository which looks like: my_repo/ ├── file1.c ├── file2.c ├── file3.c └── README This repo has no branches, or tags and all I am trying to do is convert it to a git repository and maintain the commit history. I have tried: git svn clone –trunk=/ -A users.txt svn+ssh://user@svn.example.com/projects/my_repo dest_dir […]

Importing a Subversion repository with a non-standard layout into Git

I’m trying to (permanently) migrate my group’s Subversion repository to Git, but I’m running onto problems trying to clean up its non-standard directory structure. Some of the project’s content is contained in trunk and branches folders, but not all of it. The project on Subversion is laid out like this: project/trunk/ project/branches/feature_1 project/branches/feature_2 project/libraries project/crontab […]

What are the advantages of git over git-svn?

The advantages of using git-svn over git are obvious(svn compatibility), but what are the advantages of git over git-svn?

How do I track local-only changes/change sets with git-svn?

I want to have files that I track in my local git repository that do not get checked in to the central svn repository when I run git-svn dcommit. I often have long-lived local-only changes to files tracked in the repository. Sometimes it’s for debugging code. I also have project IDE files that I’d like […]

How to clone a nonstandard svn repo to git?

I try to clone a svn repo to git, but some of the branches are in the svn root dir like follows. I’ve tried $ git clone svn://url/svn-root -T trunk -b branches -b branch1 -b branch2 and $ git clone svn://url/svn-root -T trunk -b branches -b . Both are failed to clone the branch1 and […]

Switch the svn branch git dcommits to

I had master dcommit to (and rebase from) the Subversion trunk. I created an intermediate Subversion branch tc, to merge changes from 2 different branches, using: git branch master git svn branch tc -m “Branch for merging” git checkout -b tcl –track tc git merge cat #Another branch, whose changes I merged here git commit […]

Git Baby is a git and github fan, let's start git clone.