From The Blog

Git: List changed file names only between two commits?

6 October 2016, in

Occasionally you are in the situation that you need to know which files were changed from a commit to commit either to check an issue or to deploy these changes.

git diff --name-only SHA1 SHA2


git diff --name-only HEAD~10 HEAD~5




Post a Comment

Show which git branch you are using on terminal

26 October 2015, in

You can Add this code in your ~/.bashrc file to view the current branch in your project like  

function parse_git_branch ()
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'


PS1="$GREEN\u@\h$NO_COLOR:\w$YELLOW\$(parse_git_branch)$NO_COLOR\$ "  


Now your terminal will look like the following on a directory that have a git repo showing which branch you are using now:

Post a Comment

How to get logs for SVN ?

8 August 2012, in
To get svn log from current path:
svn log -v -r {2008-09-23}:{2008-09-24}

To get svn log file and save it to a file:
svn log -v -r {2008-09-23}:{2008-09-24} > report.txt

To get svn log for another path:
svn log <url> -r {2008-09-19}:{2008-09-26}

Post a Comment