squiroid
squiroid

Reputation: 14027

Git commits reset unknown to my name

I changed my desktop(old to new) and forgot to add gitconfig file with username and email.

I commit and pushed lot of stuff on github from the last 1 month but didn't noticed my name was unknown.

Is there anyway i can reset that commits username from unknown to mine.

I already added config now but my previous major contribution is unkown :-(.

Any help would be appreciated.

Upvotes: 0

Views: 58

Answers (1)

Noufal Ibrahim
Noufal Ibrahim

Reputation: 72755

I don't have a single command for you but you can use the filter-branch command to rewrite the commit information. There are some additional details here. Then do a push with --force again and, assuming no one else has pulled from the repository, you're good to go.

Upvotes: 1

Related Questions