Re: git svn rebase totally confused; just need some sorta reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 2008 December 29 15:39:45 davetron5000 wrote:
> Is there a way I can basically say:  commit XXX is the same as the
> current HEAD of SVN, so treat things as if that's the case.

No, commits are immutable and their "name" is based on their contents.  
However, if you've fetched the current HEAD of SVN, you've already got a 
commit that corresponds (roughly) to the HEAD of SVN.

> i.e. 
> treat things the same as if I had just done a clean git svn clone.

On my git-svn created repository, I have a special ref "git-svn" that appears 
to refer to the "HEAD of SVN" commit.  ("git branch -a" shows it.)  If that's 
also the case with you:

git branch -m master master.save
git checkout -b master git-svn
# Make sure you are seeing what you want.
git branch -D master.save

should get you to where you want.

Heck, "git reset git-svn" might work.
-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss@xxxxxxxxxxxxxxxxx                     ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.net/                      \_/     

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux