Cheat Sheets Version Control

Subversion (SVN)

Search current directory for a revision that contains a string (such as ticket number) in the log message.

svn log -v . | less // once in less, do the usual search, for example  '/123'  

Remove all svn files from current directory and down.

find . -name .svn -print0 | xargs -0 rm -rf  

Remove a file from SVN control while keeping a local copy.

cd /path/to/your/file
svn delete --keep-local filename 
svn propset svn:ignore '*' . 


Show changelog.

git log --pretty=format:"%h - %an, %ad : %s" --since=2.weeks 

Edit existing commit.

Git commit --amend 

Remote/local repo summary.

git remote show origin