A Small Git Problem
(And why I am still uncomfortable with Git)

Recently, I have used Trac to manage a git project, and I used a git post-receive hook to sync the commit back to Trac.

The hook starts with something like this:

It works fine for most cases, however, when I try to push a new branch to remote, the $oldrev becomes 0, and caused problem.

fatal: ambiguous argument '0..70e0844': unknown revision or path not in the working tree.

Read more A Small Git Problem
(And why I am still uncomfortable with Git)

Git vs SVN

There are so many comparisons of Git vs SVN outside, but as far as I can tell, 99% of them are biased. (And so is this one, probably.)

And there are many Git tutorials outside, and none is clear enough so others could get on hand easily. In fact, it remains to be one of the major drawbacks of Git.

I have used SVN for many years, and used Git for quite a while now. I admit that I am not yet an expert of Git, but I have tried and suffered a number of traps of Git, and I learned a lot from those painful experiences. Some of the traps could get me stuck for one day.

Read more Git vs SVN