The presentation format of
git log output can be customized using the
--pretty flag with a format string. For example:
> git log --pretty=format:"[%H] %an on %ad - %s"
More can be fou...
Sometimes one has to copy a file from one branch to another. The
git checkout command comes in handy in this situation. Let's say we need to copy a file named
source-branch to `d...
Sometimes we need to rename a tag and push the changes to remote. This can possibly happen when a branch and tag has the same name. This ambiguity causes trouble during merge, diff etc. git commands.
If the tag hasn't been pushed to remote yet, then simply rename the tag and go on with your l...