savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sr #110430] Anonymous clone of RCS gets just the master branch


From: Bob Proulx
Subject: [sr #110430] Anonymous clone of RCS gets just the master branch
Date: Tue, 26 Jan 2021 23:17:51 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0

Follow-up Comment #2, sr #110430 (project administration):

There have been some differences over the lifetime of git about branches are
handled at clone time.  Currently the "default" branch is the only checked out
branch.  But the other remote branches are fetched.  You can see this by
listing all branches.


/tmp/rcs$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/archive
  remotes/origin/master
  remotes/origin/next
  remotes/origin/p


And then one only need to select a branch they want to switch to if they don't
want the default branch.  Let's say that you would like to look at the "next"
branch.  Then simply check it out.


/tmp/rcs$ git checkout next
Branch 'next' set up to track remote branch 'next' from 'origin'.
Switched to a new branch 'next'

/tmp/rcs$ git status
On branch next
Your branch is up to date with 'origin/next'.

nothing to commit, working tree clean


Since the local directly working copy sandbox was clean with no changes this
switched the checked out clone from the default branch that was set during the
initial clone over to the "next" branch.

These defaults can also be affected by local configurations in your global git
~/.gitconfig configuration file too.


    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/support/?110430>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]