$ git status
On branch master
Changes not staged for commit:
(use "git add
(use "git checkout —
modified: index.html
no changes added to commit (use "git add" and/or "git commit -a")
barzik@BARZIK2 MINGW64 ~/test/examplegit (master)
$ git add .
barzik@BARZIK2 MINGW64 ~/test/examplegit (master)
$ git commit –amend
[master 76214b8] some commit
Date: Fri Mar 25 11:26:32 2016 +0300
Committer: Bar Zik
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config –global user.name "Your Name"
git config –global user.email [email protected]
After doing this, you may fix the identity used for this commit with:
git commit –amend –reset-author
1 file changed, 1 insertion(+), 1 deletion(-)
barzik@BARZIK2 MINGW64 ~/test/examplegit (master)
$ git status
On branch master
nothing to commit, working directory clean
barzik@BARZIK2 MINGW64 ~/test/examplegit (master)
$ git log
commit 76214b87a6a9fda416e0fe1e0c4e302872a22bef
Author: Bar Zik
Date: Fri Mar 25 11:26:32 2016 +0300