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

Andi Clemens andi.clemens at gmx.net
Thu Feb 10 05:41:31 GMT 2011


I meant 
"bash does know the alias command" ;-)

Andi Clemens
-----------------
www.digikam.org

On Thursday 10 February 2011 06:28:18 Andi Clemens wrote:
> why so complicated?
> bash does no the alias command :-)
> 
> 
> 
> Andi Clemens
> -----------------
> www.digikam.org
> 
> On Tuesday 08 February 2011 19:23:47 Marcel Wiesweg wrote:
> > > Another question is how to concatenate git commands to one using git
> > > alias. I would perform
> > > 
> > > #git commit -a -v ; git push
> > > 
> > > ...at the same time...
> > > 
> > > I can create a shell alias, sure, but i would to know if it's possible
> > > to do it directly with git.
> > 
> > I dont know of a solution to do this with "git alias".
> > What you can do, per-repository, is to add a "commit-hook": Whenever you
> > commit, a script is executed, and this script can be "git push":
> > echo "git push" > .git/hooks/post-commit
> > chmod 755 .git/hooks/post-commit
> > 
> > but then you take away a good deal of flexibility. So I would recommend a
> > shell function in your ~/.bashrc.
> > _______________________________________________
> > Digikam-devel mailing list
> > Digikam-devel at kde.org
> > https://mail.kde.org/mailman/listinfo/digikam-devel
> 
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel



More information about the Digikam-devel mailing list