CDiff
If you use Mercurial or Git at the shell, cdiff is a useful tool to have around. By default, hg diff or git diff is displayed in the classic diff format. This displays the before-after changed lines...
View ArticleHow to git clone only the latest revision
Most of the time when I clone a Github repository, I just need the latest revision. There is no point wasting my time cloning the entire repository with all the changes. To do this: $ git clone...
View ArticleHow to use Quick Diff in Eclipse
Added, modified and deleted lines marked by Quick Diff in Eclipse editor. Eclipse has support for version control systems like Git, SVN and CVS. Support for Mercurial can be enabled by using the...
View ArticleHow to ignore files and directories in SVN
It is easy to ignore files and directories in Git or Mercurial. Ignore files can be maintained at both the user and repository levels. Git or Mercurial automatically ignore the files and directories...
View ArticleGit: Config File on Windows
On Windows, Git stores its configuration file .gitconfig in the directory %HOMEDRIVE%%HOMEPATH%. For a user named Joe on Windows 7, his .gitconfig will typically be found in C:\Users\Joe Tried with:...
View ArticleGit: Generating a Patch for your Commit
You have cloned an online Git repository, ran into a bug, found the cause, fixed it and committed it. Now, you want to submit the patch of the fix to the maintainer. The Git incantation to do this is:...
View ArticleHow to set user name and email in Git
To commit and perform other operations in Git, the name and email of the user is required. These are global configuration values in Git. Setting them from the commandline is easy: git config --global...
View ArticleHow to list all global configuration settings in Git
In Git, all the global configuration settings that are set by the user are stored in the global gitconfig file. These settings can be listed at the commandline easily: git config --global --list Tried...
View Article