Thread (1 message) 1 message, 1 author, 2016-06-15

Re: git svn fails to work

From: Dmitry Potapov <hidden>
Date: 2016-06-15 22:46:29

On Sun, Mar 29, 2009 at 12:42 AM, Aaron Gray
[off-list ref] wrote:
The commands

  git svn clone http://llvm.org/svn/llvm-project/llvm/trunk

when connection fails I do a :-

  git svn fetch

gitweb is not updating at all to show any change in the repository.
"git svn fetch" only updates the remote branch. In the same way as
"git fetch" only fetches changes from the remote repo and updates
the remote branch. You can see only local branches with gitweb.

So, you may want to run "git svn rebase" instead. (Note: the command
is "git svn rebase" and not "git clone rebase" as you wrote earlier).

"git svn rebase" fetches all changes as "git svn fetch" does but then it
rebases your local commits on the current branch on top of the svn
remote branch. If you do not have any local commits then it just
updates the top of the current branch to be the same.
Note:  Running "git svn rebase" requires that your working tree is
clean (no uncommitted changes).

You can always see all branches and what changes they have by
 running:
   gitk --all &

Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help