7

I usually commit in github using gitbash.

When I commit it shows my username.

My professor asked me to submit my project that shows my full name in commit details.

I tried some solutions by editing .gitconfig file in windows.

I also tried some solutions from Stack Overflow like following:

git config --global user.name "name"
git config --global user.email "email"

and

git config user.name "name"
git config user.email "email"

but that doesn't work for me.

Morgoth
  • 4,935
  • 8
  • 40
  • 66
SHAH MD IMRAN HOSSAIN
  • 2,558
  • 2
  • 25
  • 44

1 Answers1

0

Try this:

git commit --amend --author="Author Name <email@address.com>"
Morgoth
  • 4,935
  • 8
  • 40
  • 66
developer_hatch
  • 15,898
  • 3
  • 42
  • 75