Home > Enterprise >  Ubuntu 22.04 LTS not fully showing some git commands
Ubuntu 22.04 LTS not fully showing some git commands

Time:07-12

(new to linux terminal, comming from git bash) Linux terminal isn't showing the git command response in some cases. Git branch for example. git branch does not list branches (git branch -l doesen't work either), but there clearly is a branch since git status returns it.

Any ideas on what could be the problem? Should I use different command line?

CodePudding user response:

A branch with no commits yet doesn't yet really exist, when you commit the first time that's the one you'll make. git status shows you as "on" that branch because that's the tip you'll commit to, git branch doesn't show you that branch because you can't do anything (else) with it yet.

  • Related