How to get (only) author name or email in git given SHA1?
You can use the following command: git log –format=”%ae” HASH^! It works with git show as well. You need to include -s to suppress the diff. git show -s –format=”%ae” HASH
You can use the following command: git log –format=”%ae” HASH^! It works with git show as well. You need to include -s to suppress the diff. git show -s –format=”%ae” HASH
Just make a svn update and then your commit should work.
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
You can use a hook (put it into <repository>/hooks and name it pre-commit.bat (Windows)): @echo off :: :: Stops commits that have empty log messages. :: setlocal rem Subversion sends through the path to the repository and transaction id set REPOS=%1 set TXN=%2 rem check for an empty log message svnlook log %REPOS% -t %TXN% … Read more
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
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
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
You just need this command: hg rollback See: http://hgbook.red-bean.com/read/finding-and-fixing-mistakes.html. (Technically, this is deprecated as of version 2.7, August 2013, but I’ve yet to see an alternative that does exactly the same thing.)
You just use the following command: $ git commit -m “1. what i changed > 2. blank line > 3. why i changed” In your terminal, just hit ‘enter’ for a new line. The commit message won’t end until you add the closing quote. The git log will look like: $ git log commit abcde2f660c707br2d20411581c4183170c3p0c2 … Read more