[Digikam-devel] Re: how to use git as subversion
    Marcel Wiesweg 
    marcel.wiesweg at gmx.de
       
    Tue Feb  8 18:23:47 GMT 2011
    
    
  
> 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.
    
    
More information about the Digikam-devel
mailing list