Tagged Questions
400
votes
15answers
93k views
How to migrate SVN with history to a new Git repository?
I read git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but nowhere can you find a simple instruction like:
SVN repository in: svn://myserver/path/to/svn/repos
Git ...
173
votes
10answers
32k views
Pushing an existing git repository to SVN
I've been doing all my work in Git and pushing to GitHub. I've been very happy with both the software and the site and I have no wish to change my working practices at this point.
My PhD adviser is ...
155
votes
2answers
50k views
How to git-svn clone the last n revisions from a Subversion repository?
Problem
How do you create a shallow copy with git-svn from a Subversion repository, i.e. how do you pull only the last three revisions?
The git clone command can get the last n revisions from a Git ...
128
votes
3answers
24k views
git-svn: how do I create a new svn branch via git?
I have a git repository which tracks an svn repository. I cloned it using --stdlayout.
I created a new local branch via git checkout -b foobar
Now I want this branch to end up in …/branches/foobar ...
98
votes
6answers
22k views
Is git-svn dcommit after merging in git dangerous?
My motivation for trying out git-svn is the effortless merging and branching. Then I noticed that man git-svn(1) says:
"Running git-merge or git-pull is NOT recommended on a branch you plan to ...
97
votes
5answers
15k views
Is it possible to have a subversion repository as a git submodule?
Is there a way to add a subversion repository as a git submodule in my git repository?
Something like: git-svn submodule add https://svn.foo.com/svn/proj --stdlayout svn-project
Where ...
81
votes
7answers
18k views
How do I tell git-svn about a remote branch created after I fetched the repo?
I'm using git-svn to work against my company's central svn repository. We've recently created a new feature branch in the central repo. How do I tell git about it? When I run git branch -r I can only ...
69
votes
4answers
14k views
Ignore modified (but not committed) files in git?
Can i tell git to ignore files that are modified (deleted) but should not be committed?
The situation is that i have a subdir in the repo which contains stuff I'm not interested in at all, so I ...
55
votes
2answers
10k views
No newline at end of file
When I do a git diff it shows No newline at end of file. I was wondering what exactly is this message (Like am I missing out on something? Why is it so important?)
49
votes
9answers
18k views
Is it possible for git-merge to ignore line-ending differences?
Is it possible for git merge to ignore line-ending differences?
Maybe I'm asking the wrong question ... but:
I tried uisng config.crlf input but things got a bit messy and out of control, specially ...
48
votes
1answer
16k views
Checkout remote branch using git svn
I have checked out a svn repository using git svn. Now I need to checkout one of the branches and track it. Which is the best way to do it?
44
votes
4answers
19k views
How do I make git-svn use a particular svn branch as the remote repository?
A word of warning: I'm a n00b to git in general. My team uses feature branches in svn, and I'd like to use git-svn to track my work on a particular feature branch. I've been (roughly) following Andy ...
38
votes
2answers
6k views
Delete a svn-Branch via git?
I'am using git as scm of choice but have to use a svn-repo. I can create a svn-remote-branch like this:
git svn branch the_branch
But how can i delete the remote branch?
38
votes
4answers
9k views
git-svn: what's the equivalent to `svn switch --relocate`?
An svn repository I'm mirroring through git-svn has changed URL.
In vanilla svn you'd just do svn switch --relocate old_url_base new_url_base.
How can I do this using git-svn?
Simply changing the ...
38
votes
3answers
5k views
Retroactively Correct Authors with Git SVN?
I have a repository which I have already cloned from SVN. I've been doing some work in this repository in its Git form and I would hate to lose that structure by cloning again. However, when I ...