git-svn local branch tracking remote svn branch

I checkout my own private branch on svn like this:

git svn clone svn://server/cfe/project/branches/fb_oz_3173_email

Now I am on the branch master.

I would like to:

  • rename this branch to fb
  • add branch called master which tracks the remote svn://server/cfe/project/trunk

I can't get it right. Can someone give me a lead?

update
  • the first part is easy: git branch -m fb

Answers


Well, the second part has also an answer

git config --add svn-remote.newbranch.url https://svn/path_to_newbranch/
git config --add svn-remote.newbranch.fetch :refs/remotes/newbranch
git svn fetch newbranch [-r<rev>]
git checkout -b local-newbranch -t newbranch
git svn rebase newbranch

Originally posted here How do I tell git-svn about a remote branch created after I fetched the repo?


Need Your Help

Ajax - I need to check whether a valid session exists before every AJAX requests

javascript jquery

I'm working on a project which uses user authentication. I'm facing a issue with my AJAX requests if there is no authenticated session present when the request is made.

shared_ptr<T> to shared_ptr<T const> and vector<T> to vector<T const>

c++ c++11 const shared-ptr stdvector

I'm trying to define a good design for my software which implies being careful about read/write access to some variables. Here I simplified the program for the discussion. Hopefully this will be also