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,557
  • 7
  • 40
  • 61
SHAH MD IMRAN HOSSAIN
  • 2,096
  • 2
  • 19
  • 38

1 Answers1

0

Try this:

git commit --amend --author="Author Name <email@address.com>"
Morgoth
  • 4,557
  • 7
  • 40
  • 61
Damian Lattenero
  • 15,181
  • 3
  • 34
  • 70