Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Heidelberg <markus.heidelberg@web.de>
To: buildroot@busybox.net
Subject: [Buildroot] [GIT PULL] avr32 updates
Date: Sat, 9 May 2009 11:18:16 +0200	[thread overview]
Message-ID: <200905091118.16708.markus.heidelberg@web.de> (raw)
In-Reply-To: <d6cda7730905080356i3e2db098yc8d3cc66c41f6ac7@mail.gmail.com>

Thiago A. Corr?a, 08.05.2009:
> I somehow managed
> to completely trash my local tree and had to clone it again from the
> remote.

You shouldn't ever need to do a complete clone again, unless you did
something really strange. If you messed you local branches, then you can
recreate them from the remote branches or from the reflog which also
contains local changes. If you removed remote branches, you can simply
do "git fetch".

> I really miss svn revert... If I remove some file from the
> local tree, I can't bring it back with git fetch, git checkout or git
> reset.

Yes, you can, with checkout/reset. But it's be a bit different compared
to svn because of git's index. "git status" gives you hints what to do.
To prevent confusion: if you want to revert a particular file, that is
currently in the index, you need to invoke 2 commands: reset && checkout

Markus

  parent reply	other threads:[~2009-05-09  9:18 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-08  4:52 [Buildroot] [GIT PULL] avr32 updates Thiago A. Corrêa
2009-05-08  7:13 ` Peter Korsgaard
2009-05-08  7:59   ` Thiago A. Corrêa
2009-05-08  8:29     ` Peter Korsgaard
2009-05-08  9:17       ` Thiago A. Corrêa
2009-05-08  9:48         ` Peter Korsgaard
2009-05-08  9:57           ` Peter Korsgaard
2009-05-08 10:30             ` Peter Korsgaard
2009-05-08 10:56           ` Thiago A. Corrêa
2009-05-08 11:03             ` Daniel Mack
2009-05-08 16:59             ` Thiago A. Corrêa
2009-05-08 17:06               ` Peter Korsgaard
2009-05-09  9:18             ` Markus Heidelberg [this message]
2009-05-09  8:50           ` Markus Heidelberg
2009-05-12 10:30             ` Peter Korsgaard
2009-05-12 17:33               ` Thiago A. Corrêa
2009-05-12 19:46                 ` Peter Korsgaard
2009-05-12 20:09                   ` Thiago A. Corrêa
2009-05-12 20:27                     ` Peter Korsgaard
2009-05-08  7:15 ` Peter Korsgaard
2009-05-08  8:25 ` Daniel Mack

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=200905091118.16708.markus.heidelberg@web.de \
    --to=markus.heidelberg@web.de \
    --cc=buildroot@busybox.net \
    /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