Error when i tried running command "git init -b main" saying "unknown switch b" #534
-
When i was on the process of pushing up my code to github, i input the first command "git init -b main" but the files never turned green and this is what it said: solid-rugged@DESKTOP-HAM91T0:~/hardhat-fund-me/hardhat-fundme/hardhat-fund-me-fcc$ git init -b main |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You should just use |
Beta Was this translation helpful? Give feedback.
-
@Benrockiee Patric wanted us to create the initial branch name as the main that is why You can do this also:
After that
|
Beta Was this translation helpful? Give feedback.
@Benrockiee Patric wanted us to create the initial branch name as the main that is why
-b main
is added withgit init
.You can do this also:
After that