how to undo git submodule update

Run git checkout 025ffc in the submodule directory and then git add SubmoduleName; git commit -m ‘Some message’ in the main directory. (Remember that checking out a commit through its hash leaves you in “detached HEAD state”, meaning that you’re not on any branch. So if there already is a branch pointing to 025ffc in … Read more

Vim undo: undo changes after file write

There’s persistent undo option in vim, :h persistent-undo Note: It was introduced in VIM 7.3 version, so for earlier versions, it will not work. It can be turned on by placing the following text in your .vimrc: if has(‘persistent_undo’) “check if your vim version supports it set undofile “turn on the feature set undodir=$HOME/.vim/undo “directory … Read more

Autotools: how to cleanup files created by “./configure” in lighttpd project?

I personally would really use the features of a source control software (you should use one) for this. This would cleanup make independent of your build process. See e.g. svn-cleanup or git clean. Nevertheless, automake allows some tweaking when to remove which files. This has (intentionally?) built-in limitations on what files generated by autotools can … Read more

What are the differences between ‘revert’, ‘amend,’ ‘rollback’, and ‘undo’ a commit?

The terms revert and amend have a well defined meaning in Git. In contrast, rollback and undo do not have such a well defined meaning, and are open to interpretation. Reverting a commit… …means creating (on the current branch) a new commit that applies the inverse changes that another commit introduced. It’s the preferred approach … Read more

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