Reputation: 1633
I am trying to upload my unfuddle repo to github. I have added github repo by ssh and it is working fine. But when i trying to push data it says invalid object author line. When i push to unfuddle it works fine .
remote: error: object 9283f9029b065b6be9d4ecb483e47be8dcce84be:invalid author/co
mmitter line - missing space before date
remote: fatal: Error in object
can anyone guide me how to edit the author line /date for this commit object .
EDIT
i checked the details for this commit, and it has unix default date.
$ git show 9283f9029b065b6be9d4ecb483e47be8dcce84be
commit 9283f9029b065b6be9d4ecb483e47be8dcce84be
Author: HEMC <HEMC@HEMC-PC>
Date: Thu Jan 1 00:00:00 1970 +0000
I tried to rewrite the date as explained here .
git filter-branch --env-filter \
'if [ $GIT_COMMIT = 9283f9029b065b6be9d4ecb483e47be8dcce84be ]
then
export GIT_AUTHOR_DATE="Mon May 2 21:38:53 2014 -0800"
export GIT_COMMITTER_DATE="Mon May 19 01:01:01 2014 -0700"
fi'
But it says Cannot rewrite branches: You have unstaged changes.
I tried to drop stash .
$ git stash drop
No stash found.
I don't know, what is the problem with rewrtit.
Upvotes: 0
Views: 668