Tags » Git

[GIT commands] Kickoff

To start a git project, it is better to know some useful commands in order to understand how it works. This article allows me to memory some useful git commands. 399 more words


Line Endings in Git with Windows

Devving on Windows is a PITA.

Anyway, ever seen a message like this?

warning: LF will be replaced by CRLF in tests/unit/Del/Console/CommandTest.php.
The file will have its original line endings in your working directory. 43 more words

Use Git bisect to find dodgy commits

Today I had the mammoth task of checking through 512 git commits to find a piece of code that broke something.

Usually i would git log, look back however many commits, and then do a git reset –hard COMMIT_NUMBER, then check if it worked. 238 more words


[GIT command] Compare two branchs

# git branch
* master

Git diff command allows to list the different files between the two branchs
# git diff –name-status master..another_branch