From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81017 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: New branch for No Gnus Date: Sat, 28 Jan 2012 21:42:06 +0100 Organization: Probably a good idea Message-ID: <87k44bh84h.fsf@dod.no> References: <87bopnvezm.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327783426 32569 80.91.229.3 (28 Jan 2012 20:43:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Jan 2012 20:43:46 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29299@lists.math.uh.edu Sat Jan 28 21:43:45 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RrF7g-0006ZT-Ty for ding-account@gmane.org; Sat, 28 Jan 2012 21:43:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1RrF6T-0003Wr-Gf; Sat, 28 Jan 2012 14:42:29 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RrF6Q-0003Wf-QC for ding@lists.math.uh.edu; Sat, 28 Jan 2012 14:42:26 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RrF6K-0005KN-3D for ding@lists.math.uh.edu; Sat, 28 Jan 2012 14:42:24 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RrF6H-0003Pm-8c for ding@gnus.org; Sat, 28 Jan 2012 21:42:17 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RrF6F-0006CR-P7 for ding@gnus.org; Sat, 28 Jan 2012 21:42:15 +0100 Original-Received: from cm-84.208.231.161.getinternet.no ([84.208.231.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Jan 2012 21:42:15 +0100 Original-Received: from sb by cm-84.208.231.161.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Jan 2012 21:42:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 45 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.208.231.161.getinternet.no Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:YbsgyfGtuBauNKiehu4b0tew/8Y= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81017 Archived-At: >>>>> Andreas Schwab : > Lars Ingebrigtsen 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.