Again Git command problem

Hello guys ,

I don’t understand why I have always problem with git commands …

Here I have to create a new branch with this order: git branch cagnotte
then this one : git branch

  • master
    cagnotte

Then this one :sweat:

git checkout cagnotte

Then I must have these two branches:

git branch
master

  • cagnotte

It doesn’t work…

Do I must try with another commands ?

Help please, thank you in advance…

1 Like

Hi @Loussine. Are you trying to create a new branch? Then, you need to use the command git checkout -b branch-name.

1 Like

OMG!!!

Thank you very much, I think it worked. Where can I find commands liste?

1 Like

If you want to get a list of commands, you can either check out this article:

Or, you can use git help -a command.

1 Like

Thank you very much :slight_smile:

1 Like
2 Likes