Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

NEED HELP ASAP I created a local svn server and mirrored a git repository to the

ID: 3853110 • Letter: N

Question

NEED HELP ASAP

I created a local svn server and mirrored a git repository to the local server. I edited the .git/config file and followed the steps in this document: http://www.kerrybuckley.org/2009/10/06/maintaining-a-read-only-svn-mirror-of-a-git-repository/

However, after following the steps I only was able to mirror my git repository into the trunk directory. I need to mirror tags and branches too. Can someone tell me instructions that will allow me to mirror tags and branches from my git repository to my local svn server?

Explanation / Answer

git branch only shows local branches by default; use git branch -r to see remote branches or git branch -a to see all. git clone only creates one local branch, master by default, which tracks (again, by default) the master branch on the remote repository.

First clone a git repository and change directory in to it.

If you just want to see an up branch. You can do that by-

Instead of just peeking in, Let's say you want to work on that branch then use -

Running above command will display-

Now if you look at your local branches you will see the branch name you provided.
Run $ gitk --all & to see what's going on.


Hope this helps. Please vote up the answer. Thanks