git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Neshama Parhoti" <pneshama@gmail.com>
To: git@vger.kernel.org
Subject: git push requires a subsequent git reset --hard ?
Date: Tue, 1 Jul 2008 19:51:26 +0300	[thread overview]
Message-ID: <912ec82a0807010951j9e970f2k9624682b33c8af7d@mail.gmail.com> (raw)

Hi all,

I took with me a copy of a local repository to a week away from my station
(just rsync'ed it to my laptop).

On my return, I just "git push myuser@my-station:/my/git/repo" from my laptop.
It seemed to work with no probs.
On my station the git repo got the new commits, as I can see in
git-log, but the actual files were left untouched.

So I need to do something like "git reset --hard HEAD" to get
the changes into the local files.

Is that considered normal ?

or did I do something wrong ?

Thanks,
pnesh

             reply	other threads:[~2008-07-01 16:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-01 16:51 Neshama Parhoti [this message]
2008-07-01 17:19 ` git push requires a subsequent git reset --hard ? Jeff King
2008-07-01 17:29 ` Jakub Narebski
2008-07-02 13:36   ` Dmitry Potapov
2008-07-04 13:25     ` Neshama Parhoti
2008-07-02 13:45   ` Dmitry Potapov

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=912ec82a0807010951j9e970f2k9624682b33c8af7d@mail.gmail.com \
    --to=pneshama@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).