git update-index –assume-unchanged and git reset
You can do: git update-index –skip-worktree A
You can do: git update-index –skip-worktree A
If you are trying to reset the transformation, so that the image appears as it did originally, you can simply set the transform back to the identity. self.imageView.transform = CGAffineTransformIdentity If you want to apply arbitrary transformations to the transformed image, the easiest thing to do would be to use the CGAffineTransform methods that take … Read more
From git reset manpage: –hard Matches the working tree and index to that of the tree being switched to. Any changes to tracked files in the working tree since <commit> are lost. –merge Resets the index to match the tree recorded by the named commit, and updates the files that are different between the named … Read more
Like vcsjones says, the solution here is git checkout: git checkout <refspec> — path/to/directory # or path/to/file where <refspec> can, for instance, be HEAD, that is, the current working commit. Note that this usage of the checkout command will affect the working tree but not the index. git revert is used to “revert a commit”, … Read more
For standard error (the default): log.SetOutput(os.Stderr) For standard output: log.SetOutput(os.Stdout) http://golang.org/src/log/log.go
H2 supports a special SQL statement to drop all objects: DROP ALL OBJECTS [DELETE FILES] If you don’t want to drop all tables, you might want to use truncate table: TRUNCATE TABLE
you should just add display: table; under this selector: #listing_specs table { }
Rolling back all migrations To rollback all migrations the best solution is the one @Claudio Floreani proposed: rake db:migrate VERSION=0 This will rollback every migration. You can read why this is the best approach in his answer. Then, run all migrations again with rake db:migrate Resetting the database Reset rake db:migrate:reset #runs db:drop db:create db:migrate … Read more
This is the command I use for this kind of things, very useful repo forall -vc “git reset –hard” What everything mean here ? the repo forall will execute for all repos. the –v is verbose, so it will print the output of the command the -c “COMMAND TO EXECUTE” is the actual command you … Read more
After a lot of digging around I finally ended up downloading the source code of the recovery section of Android. Turns out you can actually send commands to the recovery. * The arguments which may be supplied in the recovery.command file: * –send_intent=anystring – write the text out to recovery.intent * –update_package=path – verify install … Read more