[Plone-conference] A tip about working with git at sprints

Andreas Zeidler andi at pyfidelity.com
Sun Oct 14 09:47:40 UTC 2012


On 14 Oct 2012, at 11:35, Florian Friesdorf <flo at chaoflow.net> wrote:
> Gil Forcada <gforcada at gnome.org> writes:
>> You can add this to your .bashrc or whichever profile you have:
>> 
>> alias gitlog='git log --graph --decorate --pretty=oneline
>> --abbrev-commit --all'
> 
> Thx! 
> 
> You can also define aliases for git, […]

good catch!  i didn't look closely enough to realize it's a bash alias, not a git alias.  to add the above as the latter you might use:

    $ git config --global alias.foo "log --graph --decorate --pretty=oneline --abbrev-commit --all"

`foo` is the resulting alias, of course.  i.e. you can then simply use `git foo`, and it even autocompletes as an added bonus.  leave out the `--global` for stuff you only want to exist in the current repo.


andi

-- 
pyfidelity.com



More information about the Plone-conference mailing list