From: Steinar Bang <sb@dod.no>
To: ding@gnus.org
Subject: Re: New branch for No Gnus
Date: Wed, 01 Feb 2012 10:10:06 +0100 [thread overview]
Message-ID: <yb0d39yly1d.fsf@dod.no> (raw)
In-Reply-To: <87ehufxsic.fsf@gnus.org>
>>>>> Lars Ingebrigtsen <larsi@gnus.org>:
> Just to be totally sure I'm not screwing anything up: Should I do a
> "git pull" in my local No Gnus tree before saying "git revert -m 2
> HEAD", and then pushing out, or should I just do the revert without
> pulling from git.gnus.org first?
I assume that this is the fix to the messup that was mentioned earlier
in the thread?
I've never used git-revert myself, but I would have done it this way:
git checkout no-gnus
git revert -m 2 HEAD
git push -f origin HEAD
I could try to explain the logic behind this...? Or I could just mention
chapter 3 of "Pro Git" again...:-)
Briefly:
- if you do "git branch" you will see all local branches in your git
repository.
- If you do "git branch -a" you will see more branches, some with
"remotes/origin/" in front of them.
- All local branches exist only in your local .git directory (they do
not exist upstream (though for tracking branches (mentioned later)
that is a question of semantics...))
- You can only check out and work on a local branch
- Some local branches have a special relationship with a remote
branch. These local branches are called "tracking branches". In
your case, no-gnus and master are tracking branches
- When you work on "no-gnus", you can't update
"remotes/origin/no-gnus" to have the same commits, in other way than
pushing the commits on "no-gnus" to origin. So what I did over, was
to:
- check out the local tracking branch no-gnus
- revert the last two commits on that branch
- push the current state of the branch to no-gnus on the remote
called "origin", updating the "remotes/origin/no-gnus" branch in
your local .git directory in the process
- the "-f" ("force") flag to push is necessary to make it drop
commits already on the branch in the origin remote
next prev parent reply other threads:[~2012-02-01 9:10 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-28 18:50 Lars Ingebrigtsen
2012-01-28 19:29 ` Raphael Kubo da Costa
2012-01-30 17:02 ` Lars Ingebrigtsen
2012-01-28 19:45 ` Andreas Schwab
2012-01-28 20:42 ` Steinar Bang
2012-01-30 17:36 ` Lars Ingebrigtsen
2012-01-30 21:24 ` Steinar Bang
2012-01-30 22:05 ` Lars Ingebrigtsen
2012-01-31 16:16 ` Steinar Bang
2012-01-31 17:02 ` Lars Ingebrigtsen
2012-01-31 17:07 ` Richard Riley
2012-01-31 17:14 ` Lars Ingebrigtsen
2012-01-31 17:50 ` Richard Riley
2012-01-31 18:36 ` Raphael Kubo da Costa
2012-01-31 18:44 ` Lars Ingebrigtsen
2012-01-31 18:52 ` Raphael Kubo da Costa
2012-01-31 18:58 ` Lars Ingebrigtsen
2012-01-31 19:15 ` Raphael Kubo da Costa
2012-01-31 19:59 ` Andreas Schwab
2012-01-31 20:59 ` Steinar Bang
2012-01-31 22:49 ` Lars Ingebrigtsen
2012-02-01 0:07 ` Raphael Kubo da Costa
2012-02-01 0:31 ` Lars Ingebrigtsen
2012-02-01 0:40 ` Raphael Kubo da Costa
2012-02-01 8:46 ` Steinar Bang
2012-02-01 0:36 ` Andreas Schwab
2012-02-01 0:38 ` Katsumi Yamaoka
2012-02-01 1:13 ` Lars Ingebrigtsen
2012-02-01 1:32 ` Katsumi Yamaoka
2012-02-01 2:22 ` Lars Ingebrigtsen
2012-02-01 2:33 ` Lars Ingebrigtsen
2012-02-01 8:51 ` Steinar Bang
2012-02-01 13:03 ` Lars Ingebrigtsen
2012-02-01 14:30 ` Steinar Bang
2012-02-01 18:26 ` Ted Zlatanov
2012-02-01 18:30 ` Lars Ingebrigtsen
2012-02-01 18:56 ` Ted Zlatanov
2012-02-01 21:59 ` Steinar Bang
2012-02-01 22:03 ` Ted Zlatanov
2012-02-01 22:24 ` Lars Ingebrigtsen
2012-02-01 22:43 ` Andreas Schwab
2012-02-01 8:24 ` Steinar Bang
2012-01-31 22:50 ` Lars Ingebrigtsen
2012-01-31 22:59 ` Lars Ingebrigtsen
2012-01-31 23:05 ` Lars Ingebrigtsen
2012-01-31 23:26 ` Lars Ingebrigtsen
2012-01-31 23:32 ` Lars Ingebrigtsen
2012-01-31 23:37 ` Lars Ingebrigtsen
2012-01-31 23:58 ` Lars Ingebrigtsen
2012-02-01 0:46 ` Andreas Schwab
2012-02-01 1:14 ` Lars Ingebrigtsen
2012-02-01 1:16 ` Lars Ingebrigtsen
2012-02-01 9:10 ` Steinar Bang [this message]
2012-02-01 13:19 ` Lars Ingebrigtsen
2012-02-01 11:31 ` Andreas Schwab
2012-02-01 13:03 ` Lars Ingebrigtsen
2012-01-31 20:56 ` Steinar Bang
2012-02-01 16:22 ` Eric S Fraga
2012-02-01 1:47 ` Michael Welsh Duggan
2012-01-30 17:34 ` Lars Ingebrigtsen
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=yb0d39yly1d.fsf@dod.no \
--to=sb@dod.no \
--cc=ding@gnus.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).