Gnus development mailing list
 help / color / mirror / Atom feed
From: Steinar Bang <sb@dod.no>
To: ding@gnus.org
Subject: Re: New branch for No Gnus
Date: Sat, 28 Jan 2012 21:42:06 +0100	[thread overview]
Message-ID: <87k44bh84h.fsf@dod.no> (raw)
In-Reply-To: <m2y5srfw74.fsf@igel.home>

>>>>> Andreas Schwab <schwab@linux-m68k.org>:
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>> As usual, I have no idea how to actually do something like that with
>> git, so could someone give a recipe?  :-)

> $ git branch no-gnus
> $ git push origin no-gnus

I usually do
 git checkout -b no-gnus
 git push origin HEAD
(after this you are on the no-gnus branch, and it is a copy of master
 up to the point when you did the checkout)

Another command to know, is
 git branch

This command will list all local branches, with the one you're currently
on, marked with a "*".


To work on master and get the latest updates, do
 git checkout master
 git pull
(now you can work, and when finished, do)
 git push origin HEAD

To get the latest from master into the no-gnus branch:
 git checkout no-gnus
 git fetch
 git merge origin/master
(and if there are no conflicts, do)
 git push origin HEAD

Note: The big thing about to learn about git isn't that it is a
distributed VCS.  The big thing to learn in git, is branching and
merging.  If you are thinking about branching and merging in the mindset
of CVS or SVN, you have the wrong mental view of things.  Branching and
merging are _cheap_ operations in git

Chapter 3, of the "Pro Git" book, is recommended reading:
 http://progit.org/book/ch3-0.html

The whys and hows of git's behaviour became much clearer to me after
reading that chapter.




  reply	other threads:[~2012-01-28 20:42 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 [this message]
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
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=87k44bh84h.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).