[Digikam-devel] Re: how to use git as subversion

Michael G. Hansen mike at mghansen.de
Sun Feb 6 18:16:10 GMT 2011


Hi Gilles,

On 02/06/2011 07:01 PM, Gilles Caulier wrote:
> hi all,
>
> I'm really lost with git. It's complex to understand.
>
> I don't want to manage branch in local and all complex situations. By
> experience, it's dangerous...
>
> Typically, i would to continue to work with git as subversion.
>
> repository is cloned. No problem.
>
> now, i change a change, and i want to "commit" my changes in KDE
> repository as like "svn ci". I perform "git commit"... git ask
> comment. fine. In comment i set CCBUGS in comment but nothing append
> in bugzilla. So i'm not sure that changes are commited.

Use
git commit -a

to have git automatically find the files you changed. Remember that a 
commit is local, and you have to 'git push' it back to KDE. A nice thing 
is that once you push, a gitweb url is displayed, so you can see online 
that the commit is there.

> To be sure, i delete my changed files (moves in another place in fact)
> and i want to perform "svn up" as well. I try "git pull", but git said
> that there is nothing to do. All is already updated...
>
> ARGGGGG... file are deleted !
>
> "git diff" said that files have been removed... but i'm not able to restore it.
>
> I'm lost. I thinking that git is not perfect for me, or i'm not
> adapted to git (:=)))...

Maybe this can be of help:

http://book.git-scm.com/

I'm also a little bit lost, but I'm sure we'll manage it soon ;-)

Michael



More information about the Digikam-devel mailing list