Useful git hooks – Part 4

Continuing Useful git hooks – Part 3 Lots of git hooks were written since my last blogpost. I really want to sum up what was done so far. All the hooks are available on BitBucket and GitHub repos We have simple branching model: master represents future releases, at some point we are creating a separate …

Useful git hooks – Part 3

Continuing Useful git hooks – Part 2 Finally I finished all my hooks I wanted I don’t want to repeat myself so please follow README in my repository https://bitbucket.org/mnaoumov/githooks for complete reference of all hooks implemented. Actually the hooks were mostly written more than two weeks ago but I did not want to publish them …

Useful git hooks – Part 2

Continuing Useful git hooks Repo – https://bitbucket.org/mnaoumov/githooks/ I completely reviewed the idea of testing hooks You just grab the code from repository, it has only master branch Then you run PrepareForTests.ps1 And it creates local repository and branches to emulate the situations handled by hooks. README.md contains good explanation how to test hooks. Also I …

Useful git hooks

Git hooks is a nice way to do extend git capabilities. I decided to create some of them which helps in different day-to-day situations I have a repository http://bitbucket.org/mnaoumov/githooks/ where you can get all of them. So far two hooks are implemented which handles the situation when you do pull from a repository having some …

git – change date of commit

If you want for whatever reason change date of the existing commit you can use the following snippet (PowerShell) If you want to modify date of the last commit For full list of supported date formats type and look at DATE FORMATS section If you need to change date of the non-last commit you would …

PowerShell + Git = posh-git

We want to have better command completion with Git from console. We are lucky because of the posh-git Now we can type git co – press Tab and get completion to git commit or even more interesting git checkout – Tab – can switch between available Installation is very simple especially with PsGet That’s it! …

Git Extensions from console

I found a way to run Git Extensions from console. This is especially useful to do commits. You can review changes, stage or unstage them, more and more… Installation is extremely simple Create C:\Program Files (x86)\Git\bin\git-ex file with the following content That’s it! Now you can go to console and type or For more commands …

Git & Devart CodeCompare integration

Thanks to @Daniel I finally succeed integrating Git & my favorite comparison tool Devart CodeCompare To integrate add the following lines to the c:\Users\[User Name]\.gitconfig file Now git difftool will work properly from both command line and Git Extensions. P.S. I strongly recommend to disable Visual Studio integration with CodeCompare during installation. I think it …