On Fri, Sep 29, 2023 at 04:45:13AM -0700, Leonardo D'Alimonte wrote:

> so basically the command "git branch" without params lists local branches 
> that are not yet checked out.

This statement is a bit strange.
A Git repository may only have a single branch checked out at any given time.
The command `git branch` lists your local branches - those you can work on in
your repository. Of these branches, one or none can be checked out right now,
but the fact whether any of those branches has previously been checked out or
not makes absolutely no difference.

I think you might want to elaborate on what you had in mind because you might
maintain some serious misconception about these matters, and this will bite
you in the neck later.

> What I actually didn't know is "-a" params which lists *all *branches, 
> local and remotes included :)

There is also the "-r" command-line flag which makes the command list only the
remote branches.

As usually, it never hurts to run `git help <command>` and squint at what it
shows; in this case that'd be `git help branch` ;-)

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/20230929120438.nolqvhq4co4gppbu%40carbon.

Reply via email to