Working locally with git and remote with subversion
I really like git
but unfortunately only can submit to a subversion
repository.
Is it possible to work locally with git
with all benefits and submit/checkout from a subversion
repository?
git svn
add a comment |
I really like git
but unfortunately only can submit to a subversion
repository.
Is it possible to work locally with git
with all benefits and submit/checkout from a subversion
repository?
git svn
You can't have both full benefits of git and keep using SVN server at the same time. That's because some things don't translate nicely from git to SVN.
– svick
Feb 18 '12 at 13:26
add a comment |
I really like git
but unfortunately only can submit to a subversion
repository.
Is it possible to work locally with git
with all benefits and submit/checkout from a subversion
repository?
git svn
I really like git
but unfortunately only can submit to a subversion
repository.
Is it possible to work locally with git
with all benefits and submit/checkout from a subversion
repository?
git svn
git svn
edited Feb 18 '12 at 13:56
Razer
asked Feb 18 '12 at 13:03
RazerRazer
3,22693774
3,22693774
You can't have both full benefits of git and keep using SVN server at the same time. That's because some things don't translate nicely from git to SVN.
– svick
Feb 18 '12 at 13:26
add a comment |
You can't have both full benefits of git and keep using SVN server at the same time. That's because some things don't translate nicely from git to SVN.
– svick
Feb 18 '12 at 13:26
You can't have both full benefits of git and keep using SVN server at the same time. That's because some things don't translate nicely from git to SVN.
– svick
Feb 18 '12 at 13:26
You can't have both full benefits of git and keep using SVN server at the same time. That's because some things don't translate nicely from git to SVN.
– svick
Feb 18 '12 at 13:26
add a comment |
4 Answers
4
active
oldest
votes
This just appeared on Hackernews: Working with git on a Subversion project
2
Page linked in this answer can't be found :(
– sayo9394
May 12 '16 at 3:34
There's a version on archive.org but the server is down right now: web.archive.org/web*/stevenvanbael.com/archives/587
– three
May 12 '16 at 11:01
add a comment |
git integrates nicely with subversion.
add a comment |
You might find this ProGit chapter particularly useful.
One of Git’s great features is a bidirectional bridge to Subversion called git svn. This tool allows you to use Git as a valid client to a Subversion server, so you can use all the local features of Git and then push to a Subversion server as if you were using Subversion locally.
add a comment |
Expanding on Three's answer:
This just appeared on Hackernews: Working with git on a Subversion project
Getting Started
Using git-svn (Official) you can clone your SVN repository using the command
git-svn clone -s http://example.com/my_subversion_repo local_dir
The -s is there to signify that my Subversion repository has a standard layout (trunk/, branches/, and tags/.) If your repository doesn’t have a standard layout, you can leave that off.
This tracks everything except empty directories as git doesn't track empty directories and svn:ignore
is not ignored in this git repo. To add these files to a .gitignore
file, run the following command.
git-svn show-ignore > .gitignore
You can then use the commands such as git checkout -b new_branch_name [old_branch_name]
for adding branches, git add <filename>
for adding files, git checkout <filename>
for reverting changes and git commit -a
for committing changes as you would normally use git.
Before committing back to svn, you will want to rebase any changes using git-svn rebase
and then to push your commits back to svn you will use git-svn dcommit
(Delta Commit).
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f9341407%2fworking-locally-with-git-and-remote-with-subversion%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
This just appeared on Hackernews: Working with git on a Subversion project
2
Page linked in this answer can't be found :(
– sayo9394
May 12 '16 at 3:34
There's a version on archive.org but the server is down right now: web.archive.org/web*/stevenvanbael.com/archives/587
– three
May 12 '16 at 11:01
add a comment |
This just appeared on Hackernews: Working with git on a Subversion project
2
Page linked in this answer can't be found :(
– sayo9394
May 12 '16 at 3:34
There's a version on archive.org but the server is down right now: web.archive.org/web*/stevenvanbael.com/archives/587
– three
May 12 '16 at 11:01
add a comment |
This just appeared on Hackernews: Working with git on a Subversion project
This just appeared on Hackernews: Working with git on a Subversion project
answered Feb 18 '12 at 13:55
threethree
6,29332634
6,29332634
2
Page linked in this answer can't be found :(
– sayo9394
May 12 '16 at 3:34
There's a version on archive.org but the server is down right now: web.archive.org/web*/stevenvanbael.com/archives/587
– three
May 12 '16 at 11:01
add a comment |
2
Page linked in this answer can't be found :(
– sayo9394
May 12 '16 at 3:34
There's a version on archive.org but the server is down right now: web.archive.org/web*/stevenvanbael.com/archives/587
– three
May 12 '16 at 11:01
2
2
Page linked in this answer can't be found :(
– sayo9394
May 12 '16 at 3:34
Page linked in this answer can't be found :(
– sayo9394
May 12 '16 at 3:34
There's a version on archive.org but the server is down right now: web.archive.org/web*/stevenvanbael.com/archives/587
– three
May 12 '16 at 11:01
There's a version on archive.org but the server is down right now: web.archive.org/web*/stevenvanbael.com/archives/587
– three
May 12 '16 at 11:01
add a comment |
git integrates nicely with subversion.
add a comment |
git integrates nicely with subversion.
add a comment |
git integrates nicely with subversion.
git integrates nicely with subversion.
answered Feb 18 '12 at 13:05
Darin DimitrovDarin Dimitrov
836k22130042740
836k22130042740
add a comment |
add a comment |
You might find this ProGit chapter particularly useful.
One of Git’s great features is a bidirectional bridge to Subversion called git svn. This tool allows you to use Git as a valid client to a Subversion server, so you can use all the local features of Git and then push to a Subversion server as if you were using Subversion locally.
add a comment |
You might find this ProGit chapter particularly useful.
One of Git’s great features is a bidirectional bridge to Subversion called git svn. This tool allows you to use Git as a valid client to a Subversion server, so you can use all the local features of Git and then push to a Subversion server as if you were using Subversion locally.
add a comment |
You might find this ProGit chapter particularly useful.
One of Git’s great features is a bidirectional bridge to Subversion called git svn. This tool allows you to use Git as a valid client to a Subversion server, so you can use all the local features of Git and then push to a Subversion server as if you were using Subversion locally.
You might find this ProGit chapter particularly useful.
One of Git’s great features is a bidirectional bridge to Subversion called git svn. This tool allows you to use Git as a valid client to a Subversion server, so you can use all the local features of Git and then push to a Subversion server as if you were using Subversion locally.
answered Oct 29 '12 at 14:20
Jeromy FrenchJeromy French
8,9591056101
8,9591056101
add a comment |
add a comment |
Expanding on Three's answer:
This just appeared on Hackernews: Working with git on a Subversion project
Getting Started
Using git-svn (Official) you can clone your SVN repository using the command
git-svn clone -s http://example.com/my_subversion_repo local_dir
The -s is there to signify that my Subversion repository has a standard layout (trunk/, branches/, and tags/.) If your repository doesn’t have a standard layout, you can leave that off.
This tracks everything except empty directories as git doesn't track empty directories and svn:ignore
is not ignored in this git repo. To add these files to a .gitignore
file, run the following command.
git-svn show-ignore > .gitignore
You can then use the commands such as git checkout -b new_branch_name [old_branch_name]
for adding branches, git add <filename>
for adding files, git checkout <filename>
for reverting changes and git commit -a
for committing changes as you would normally use git.
Before committing back to svn, you will want to rebase any changes using git-svn rebase
and then to push your commits back to svn you will use git-svn dcommit
(Delta Commit).
add a comment |
Expanding on Three's answer:
This just appeared on Hackernews: Working with git on a Subversion project
Getting Started
Using git-svn (Official) you can clone your SVN repository using the command
git-svn clone -s http://example.com/my_subversion_repo local_dir
The -s is there to signify that my Subversion repository has a standard layout (trunk/, branches/, and tags/.) If your repository doesn’t have a standard layout, you can leave that off.
This tracks everything except empty directories as git doesn't track empty directories and svn:ignore
is not ignored in this git repo. To add these files to a .gitignore
file, run the following command.
git-svn show-ignore > .gitignore
You can then use the commands such as git checkout -b new_branch_name [old_branch_name]
for adding branches, git add <filename>
for adding files, git checkout <filename>
for reverting changes and git commit -a
for committing changes as you would normally use git.
Before committing back to svn, you will want to rebase any changes using git-svn rebase
and then to push your commits back to svn you will use git-svn dcommit
(Delta Commit).
add a comment |
Expanding on Three's answer:
This just appeared on Hackernews: Working with git on a Subversion project
Getting Started
Using git-svn (Official) you can clone your SVN repository using the command
git-svn clone -s http://example.com/my_subversion_repo local_dir
The -s is there to signify that my Subversion repository has a standard layout (trunk/, branches/, and tags/.) If your repository doesn’t have a standard layout, you can leave that off.
This tracks everything except empty directories as git doesn't track empty directories and svn:ignore
is not ignored in this git repo. To add these files to a .gitignore
file, run the following command.
git-svn show-ignore > .gitignore
You can then use the commands such as git checkout -b new_branch_name [old_branch_name]
for adding branches, git add <filename>
for adding files, git checkout <filename>
for reverting changes and git commit -a
for committing changes as you would normally use git.
Before committing back to svn, you will want to rebase any changes using git-svn rebase
and then to push your commits back to svn you will use git-svn dcommit
(Delta Commit).
Expanding on Three's answer:
This just appeared on Hackernews: Working with git on a Subversion project
Getting Started
Using git-svn (Official) you can clone your SVN repository using the command
git-svn clone -s http://example.com/my_subversion_repo local_dir
The -s is there to signify that my Subversion repository has a standard layout (trunk/, branches/, and tags/.) If your repository doesn’t have a standard layout, you can leave that off.
This tracks everything except empty directories as git doesn't track empty directories and svn:ignore
is not ignored in this git repo. To add these files to a .gitignore
file, run the following command.
git-svn show-ignore > .gitignore
You can then use the commands such as git checkout -b new_branch_name [old_branch_name]
for adding branches, git add <filename>
for adding files, git checkout <filename>
for reverting changes and git commit -a
for committing changes as you would normally use git.
Before committing back to svn, you will want to rebase any changes using git-svn rebase
and then to push your commits back to svn you will use git-svn dcommit
(Delta Commit).
answered Nov 12 '18 at 22:15
Dean MeehanDean Meehan
1,7431425
1,7431425
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f9341407%2fworking-locally-with-git-and-remote-with-subversion%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You can't have both full benefits of git and keep using SVN server at the same time. That's because some things don't translate nicely from git to SVN.
– svick
Feb 18 '12 at 13:26