Colourize diff to HTML
Use pygments. It is compatible with many languages. http://pygments.org/docs/cmdline/
Just another Yipp.ca Blogs site
Use pygments. It is compatible with many languages. http://pygments.org/docs/cmdline/
Git log full-text with search git log -p | grep <SEARCH_STRING> Git log of a single file $> git log -p --follow <PATH/FILENAME> Git log of a single commit todo Git diff between two branches...
Error $ git submodule update --init --recursive fatal: Needed a single revision Unable to find current revision in submodule path 'install/haibundle' Solution NOTE: This assumes you have no useful changes in the submodule, otherwise...
Problem : Welcome to Git (version 1.9.4-preview20140929) $ git pull origin /libexec/git-core/git-sh-setup: line 343: cd: .git: No such file or directory Unable to determine absolute path of git directory flemieux@BEAVER j/kui $ Solution :...
The following will remove all builds artefacts, work in progress, getting you back to a clean state. Replace the part in bold by your branch. git fetch origin git reset --hard origin/master git clean...
Let say you are working on branch 4.3, and by accident you merge the wrong branch name instead : git merge origin ABC Your working tree is now completely broken with failed merges since...
(1) sudo wget http://git.icir.org/git-notifier.git/blob_plain/refs/heads/master:/git-notifier -O /usr/share/git-core/contrib/hooks/git-notifier chmod +x /usr/share/git-core/contrib/hooks/git-notifier (2) Add ssh private key to your .shh folder so git operations dont ask for password. This will be automated. (3) For each new...
Fixing these file permission changes Actually it is not GIT that changes the files but samba. When you checkout a a git repo in a samba-managed folder, some weird mask apply. In my case...
Your configuration specifies to merge with the ref 'XYZ' from the remote, but no such ref was fetched. Ahhhh!!!!!! WHY GOD WHY!!!! What happened, why am I seeing this ? - Your team created...
Adding a file for a commit $> git add <filename> Removing a file from git $> git rm <filename> Remove file from the to be committed list of files $> git reset HEAD <filename> Remove...
Recent Comments