Git (TortoiseGit) – How to revert a single file to a previous revision and then undo the revert?

From the command line: git checkout is probably what you want. The documentation shows an example of: $ git checkout master~2 Makefile to revert Makefile to two revisions back in the master branch From within TortoiseGit (via Windows Explorer) it looks like you can do this with the following steps: Navigate in Explorer to the … Read more

Getting the subversion repository number into code

Two ways: Embed $Id$ or $Revision$ within the code. Then set svn:keywords=”Id Revision” property on the file. This will give you the last modified revision of that source file. Good for smaller projects and scripts. Alternatively, use a Makefile driven process and the command line tool svnversion. (Language specific – this should work for C/C++) … Read more

How to 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

failed to find Build Tools revision 21.1.1 – sdk up to date

What worked for me was: android list sdk -a Which showed me the following list: 1- Android SDK Tools, revision 24.0.2 2- Android SDK Platform-tools, revision 21 3- Android SDK Build-tools, revision 21.1.2 4- Android SDK Build-tools, revision 21.1.1 5- Android SDK Build-tools, revision 21.1 6- Android SDK Build-tools, revision 21.0.2 7- Android SDK Build-tools, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)