From: Jakub Narebski <jnareb@gmail•com>
To: Magnus Hjorth <magnus.hjorth@home•se>
Cc: git@vger•kernel.org
Subject: Re: Committing with past date?
Date: Sun, 31 Aug 2008 04:12:18 -0700 (PDT) [thread overview]
Message-ID: <m34p51qvzv.fsf@localhost.localdomain> (raw)
In-Reply-To: <1220179469.5518.5.camel@magnus-desktop>
Magnus Hjorth <magnus.hjorth@home•se> writes:
> Can someone tell me how to make a git commit with a date other than the
> current. I hope there is some easier way than changing the system
> clock.. :)
See git(1), section "Environment Variables":
git Commits
GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL, GIT_AUTHOR_DATE,
GIT_COMMITTER_NAME, GIT_COMMITTER_EMAIL, GIT_COMMITTER_DATE,
EMAIL
see git-commit-tree(1)
or you can use GIT_COMMITTER_IDENT, GIT_AUTHOR_IDENT. See output
of "git var -l" to get form of it.
> I'm trying to port over old version history that I maintained manually
> (tarballs and changelogs) into a git repository.
For that, I think it would be best to take a look at example
fast-import script: contrib/fast-import/import-tars.perl;
there is equivalent contrib/fast-import/import-zips.py if you
perfer either Pyhon over Perl, and/or zips over tarballs.
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2008-08-31 11:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-31 10:44 Committing with past date? Magnus Hjorth
2008-08-31 11:12 ` Jakub Narebski [this message]
2008-09-01 16:25 ` Magnus Hjorth
2008-09-01 19:02 ` Russ Dill
2008-09-02 0:31 ` Jakub Narebski
2008-09-02 2:42 ` Magnus Hjorth
2009-02-03 4:18 ` Similar thread Zabre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m34p51qvzv.fsf@localhost.localdomain \
--to=jnareb@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=magnus.hjorth@home$(echo .)se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox