From: davetron5000 <davetron5000@gmail.com>
To: git@vger.kernel.org
Subject: using git-push to backup repo...strange behavior
Date: Fri, 30 May 2008 05:42:20 -0700 (PDT) [thread overview]
Message-ID: <3a6159d2-e1ff-4aa8-bfeb-806af2bc82c8@8g2000hse.googlegroups.com> (raw)
at least to me.
I have a git repo locally. Want to essentially back it up on a remote
server using git.
First step was tar/gz the repo, scp it to my server and expand it.
Periodically throughout the day, I will do a
git push ssh://my.hostname.com/path/to/git/repo
There's a few issues:
1. Sometimes it doesn't work, saying a branch is "non fast forward".
--mirror or -f fixes this, but it seems wrong; I make no changes
remotely and clocks are in sync
2. --mirror doesn't like git stash, saying 'stash' is a "funny
refname"
3. On the remote side, I can find no way to update the working dir
with the changes other than git reset --hard. Do I even need to do
this? I'd like to be able to for automated builds/tests someday.
4. I made post-update executable, but it never runs (it echos a
message to a file)
I can't help feeling I'm doing everything wrong and just chancing on
things working under certain conditions.
Dave
next reply other threads:[~2008-05-30 12:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-30 12:42 davetron5000 [this message]
2008-05-30 12:58 ` hooks/post-update does not run Teemu Likonen
2008-05-30 13:15 ` using git-push to backup repo...strange behavior david
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=3a6159d2-e1ff-4aa8-bfeb-806af2bc82c8@8g2000hse.googlegroups.com \
--to=davetron5000@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).