Re: git message

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michele Ballabio
Date: Tuesday, March 11, 2008 - 6:30 am

On Monday 10 March 2008, Mike Miller wrote:

When you clone from a repository, git clone does a default checkout using
the branch referred to by HEAD. If HEAD does not exist on the remote repo,
git clone simply does not checkout any branch (but your local repo is ok).

At least that's what I understood from reading git-clone.sh.

You can see all the remote branches with

	git branch -a

and checkout a new local branch on top of them with

	git checkout -b local_branch remote_branch

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git message, Mike Miller, (Mon Mar 10, 7:46 am)
Re: git message, Michele Ballabio, (Tue Mar 11, 6:30 am)