Thread (9 messages) flat view 9 messages, 5 authors, 2016-06-15

Re: remote branches, and branch names in general

From: Jay Soffian <hidden>
Date: 2016-06-15 22:46:19

On Tue, Mar 3, 2009 at 11:11 AM, Jeff King [off-list ref] wrote:
Yes, the "branch" command deals only with creating things in refs/heads,
Unless given -r, in which case it looks in refs/remotes, or -a, in
which case it looks in refs/heads and refs/remotes. :-)
which are your local branches (similarly, "git tag" will only deal with
stuff in refs/tags). So "git branch origin/foo" will make a ref
"refs/heads/origin/foo", and "git branch -d origin/foo" will delete
"refs/heads/origin/foo", not "refs/remotes/origin/foo".
For the latter, use git branch -d -r origin/foo. I'm not sure whether
-r is usable when creating a branch, I haven't tried.

j.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help