oracle – what statements need to be committed?

DML (Data Manipulation Language) commands need to be commited/rolled back. Here is a list of those commands. Data Manipulation Language (DML) statements are used for managing data within schema objects. Some examples: INSERT – insert data into a table UPDATE – updates existing data within a table DELETE – deletes records from a table, the … Read more

Undo delete in GIT

Do yourself a favour and do not do git checkout <hash> like the other answer suggests and go into more problems. IF you have deleted file from your working directory and not committed the changes yet, do: git checkout -f CAUTION: commit uncommitted files before executing this command, otherwise you’re going to lose them all … Read more

How do I reverse a commit in git?

This article has an excellent explanation as to how to go about various scenarios (where a commit has been done as well as the push OR just a commit, before the push): From the article, the easiest command I saw to revert a previous commit by its commit id, was: git revert dd61ab32

Git commit to common submodule (master branch)

Short answer: cd ProjectFooBarCommoneSubmodule git checkout master <Do your editing> git commit –all -m “Lots of fixes” git push submodule_origin master cd .. git add ProjectFooBarCommoneSubmodule git commit -m “Bumped up the revision of ProjectFooBarCommoneSubmodule” git push origin master The longer one: Git submodules are a dependency mechanism, where the main project (say A) defines … Read more