Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8651541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:05:52+00:00 2026-06-12T14:05:52+00:00

I have cloned my svn repo using git, specifying branches and trunk (no tags

  • 0

I have cloned my svn repo using git, specifying branches and trunk (no tags involved). Then, I ran fetch for a limited range of revisions. Now, I have:

$ git branch
* master

and

$ git branch -r
  version-2.3.1
  version-2.3.2
  version-2.3.3
  trunk

So, I understand that these branches are remote branches, and I did read http://git-scm.com/book/en/Git-Branching-Remote-Branches , but because remote branches are new to me, I’m having a hard time understanding how to use that knowledge in a svn context. One person at this link How to switch svn branches using git-svn? said to just do:

git reset --hard remotes/branch
git checkout branch
etc

but the 2nd command, “git checkout branch” doesn’t apply to me since I don’t have any local branches…..

So, now that I’ve got a bunch of remote branches that correspond to svn branches, what is the recommended workflow for “svn switch”ing to one of the branches, dcommit’ing, then “svn switch”ing back to a different branch? I never use trunk, I’m always working on branches.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:05:53+00:00Added an answer on June 12, 2026 at 2:05 pm

    Now you are in master branch, you just:

    git reset --hard version-2.3.3
    

    and then your master branch is same as remote branch version-2.3.3.

    Create another branch:

    git checkout -b local-version-2.3.1
    git reset --hard version-2.3.1
    

    Then you create a new branch named: local-version-2.3.1, and it’s the same as remote branch version-2.3.1.

    Good luck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have cloned a svn project repo using git-svn. When I fetch commits, how
I have a cloned git-svn repo. Using "git svn rebase" will get me latest
I have an SVN repo with a layout like project1/trunk project1/branches project1/tags project2/trunk project2/branches
I have a 3 year old svn repo I just converted to git using
I have cloned a project from a git repo into eclipse Helios using the
I have cloned a remote SVN repository with git-svn. I have modified a pom.xml
I have created a bare git repo (lets call it repo #1) and cloned
I am tryin gto understand branches in git.I have worked with SVN so trying
we have a git svn repo that fetches from svn and shows all the
I have cloned ~60 git repositories and I would like to update the most

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.