[TYPO3-mvc] FYI: GitHelper

Steffen Müller typo3 at t3node.com
Tue Feb 1 10:34:51 CET 2011


Hi.

On 31.01.2011 21:58 Bastian Waidelich wrote:
>
> Secondly I try to commit often - at least once before closing time.
> Mostly commits in one dev branch belong to one issue so they should end
> up in one changeset. To achieve that, you want to use "git commit
> --amend" which allows you to "change history" ;)

I even commit more often. One annoyance with amend is the commit msg:
git commit --amend will always aks for a commit msg. To avoid that I use 
this config:
git config --global alias.amend 'commit --amend -C HEAD'

This creates the alias 'git amend' which will reuse the commit msg from 
the latest commit.

So the only commit wherte you have to add a comment is the initial 
commit (without amend).

See: http://www.jukie.net/bart/blog/git-amend

-- 
cheers,
Steffen

TYPO3 Blog: http://www.t3node.com/
Twitter: http://twitter.com/t3node



More information about the TYPO3-project-typo3v4mvc mailing list