Show the diff of last commit in svn
Answer:
Someone has just committed their changes to the svn and you want to find what have changed, just use the command:
# svn diff -rPREV
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Show the diff of last commit in svn
Answer:
Someone has just committed their changes to the svn and you want to find what have changed, just use the command:
# svn diff -rPREV
Remove SVN client credentials caching
Answer:
svn will store your credentials information at "~/.subversion/auth/svn.simple/" for caching to help you from typing password on every svn commands. In order to clean this cache, you can
# rm -f ~/.subversion/auth/svn.simple/*
Securely remove files or directories in Linux
Answer:
Normally you would remove a file by using the rm command, but what if you want to make sure the file is removed securely which prevent other people from recovering it?
Use srm, e.g.
# srm confidential.txt
Show hidden files in Mac file dialogs
Answer:
To show hidden files in Mac file dialogs (e.g. Open/Save file dialog), you can use the shortcut
shift + command + .
That's it.
How do I diff the changes which have been staged but not committed in Git?
Answer:
Usually when you have not staged your changes, git diff is what you all need. But when you have staged the changes, then you need to use
git diff --cached