Error in Github Documentation

hi, there is an error in the github documentation
section - Importing your projects
sub-section - Import Code to Github
sub-sub-section - Add a Project locally

Step 4 you say
$ git init -b main
running this command in git bash gives the error unknown switch `b’
The issue is underlined in red in the image

That means you’re using an old Git version and probably should update. The -b option lets you set the name of the initial branch.

If you don’t care about the initial branch name you can remove the option and just run git init to use the default name, you can always rename it later.

1 Like

hey thanks for that, I had no idea, I’ll have to google how to update, thanks for the answer

1 Like

Then mark @airtower-luna’s response as the solution, so that the thread can be marked as solved.

2 Likes

sorry if i am stupid, but how do i mark it as the solution, i can’t see how to do that, sorry for the dumb question

Nothing to apologize for (we all start somewhere, right?), each software and platform has its own interface. See this Community post, by the admins, on how to do it and why it’s important:

https://github.community/t/great-answer-acknowledge-it-as-a-solution/124980/4

BTW, I advice you take the DiscoBot tutorial on how to use Discord (I took the entire tutorial at once, both beginner and advanced). I don’t remember the exact command to start the tutorial, but you should type in the text-editing box:

@discobot display help

and the AI will show you the available options.

1 Like

hi @tajmone , sorry once again, but that link you gave me showed a gif of someone clicking a solution box underneath the correct answer to the problem. This solution box was immediately to the left of the heart icon

But i can’t see it. You will notice i have clicked heart on every reply yet, still no solution box appears. Yikes!!! Its frustrating that i cannot see a box to click. Where is this elusive solution box? I show an image of what i can see right below this line

Since you’re the author of the post, you’re the only who would be seeing that button, I’m afraid. I tried to look in some of my old posts, but they either don’t have any replies I can choose as solution, or they already have one.

Lately I’ve been experiencing lots of issues with GitHub’s WebUI, here and on GitHub too, including missing previews of the markdown text being typed (here on Community), and missing buttons or UI elements, and very often broken CSS. Usually, refreshing the page multiple times solves the problems, but in this case I suspect it might be a backend bug which for some reason is not treating this thread (or category) as one that allows “solution answers”.

Well never mind. The goal of marking a solution is to allow spotting solved posts in posts-lists, and having the solution answer always show on top. But that’s not a very long thread either.

1 Like

thanks @tajmone , somehow when i revisted the page in response to your reply, the solution buttons were everywhere, and even better airtower-luna’s response had been selected. Thanks for helping me anyway