Go to a particular revision

Before executing this command, keep in mind that it will leave you in a detached head status. Use git checkout <sha1> to check out a particular commit. Where <sha1> is the commit unique number (SHA-1 hash value) that you can obtain with git log. Here are some options after you are in the detached head … Read more

Perforce not syncing files correctly

Perforce keeps track of the files that it thinks that you have on your local workstation. If you delete those files locally (and don’t “tell” perforce about it), then Perforce will still think that you have those files. If you want to get them back, you need to “force sync” the files. In p4v, you … Read more

find svn revision by removed text

Building on khmarbaise’s script, I came up with this: #!/bin/bash file=”$1″ REVISIONS=`svn log $file -q –stop-on-copy |grep “^r” | cut -d”r” -f2 | cut -d” ” -f1` for rev in $REVISIONS; do prevRev=$(($rev-1)) difftext=`svn diff –old=$file@$prevRev –new=$file@$rev | tr -s ” ” | grep -v ” -\ \- ” | grep -e “$2″` if [ … Read more

How can I delete a specific revision of a github gist?

Github has a help page about removing sensitive data: http://help.github.com/removing-sensitive-data/ As gists are just git repositories, you should be able to locally clone your gist, do the clean-up there and do a forced push to overwrite the github version with the cleaned repo. Yes, after thinking about it: If <commit> is the commit you want … Read more

Missing annotations.jar

So, when i updated sdk to L version i had same problem. But after Extra folders updating in SDK Manager i didn’t find annotation.jar file. Maybe Google bug with new SDK version. So i copied annotation.jar file from old SDK folder (folder half a year ago)

Are there revision control systems for images?

Subversion is actually pretty good for version controlling binary files. It’s just about the only great strength it has over, say, Git (as far as I’m concerned, anyway). See this answer of mine for a more detailed explanation of that assertion. ImageMagick has a compare command that shows you the pixel-by-pixel difference between two RASTER … Read more