#398 Typos in the "Clone this repository" Quick Guide

Open
opened 2 weeks ago by spiraldancing · 3 comments

I cloned a project of mine from GitHub over to Codeberg, by pulling it down to my local machine via git in the terminal, then creating a new empty project here in Codeberg (same name), adding Codeberg to my remote repo-list, and I tried pushing it to Codeberg.

I'm clumsy enough on Git that I thankfully just followed the directions provided by Codeberg (in the attached screenshot) ... except there's a typo in there.

For both given examples, the final command (for normal/default project set-up) should be

git push -u origin master

As a side-note, I would have just edited this myself and submitted a pull request ... except I couldn't see where/how to do that. Did I miss something on the "Clone this repo" Quick Guide page, or isn't it an option there?

Thanks.

ETA: I just noticed that the first code block also specifies to checkout to "main", so I suppose that block will work ... but in all the Git documentation I've ever seen, the default primary branch is always "master", not "main".

I cloned a project of mine from GitHub over to Codeberg, by pulling it down to my local machine via git in the terminal, then creating a new empty project here in Codeberg (same name), adding Codeberg to my remote repo-list, and I tried pushing it to Codeberg. I'm clumsy enough on Git that I thankfully just followed the directions provided by Codeberg (in the attached screenshot) ... except there's a typo in there. For both given examples, the final command (for normal/default project set-up) should be ``` git push -u origin master ``` As a side-note, I would have just edited this myself and submitted a pull request ... except I couldn't see where/how to do that. Did I miss something on the "Clone this repo" Quick Guide page, or isn't it an option there? Thanks. ETA: I just noticed that the first code block also specifies to checkout to "main", so I suppose that block will work ... but in all the Git documentation I've ever seen, the default primary branch is always "master", not "main".
hw commented 2 weeks ago
Poster
Owner

The name of the main/master branch is selected when creating an empty repository, the instructions will match the choice you made.

Note that you can more conveniently migrate your repository using the migration feature (+ button in the top navbar), including issues, releases, pull requests.

The name of the main/master branch is selected when creating an empty repository, the instructions will match the choice you made. Note that you can more conveniently migrate your repository using the `migration` feature (`+` button in the top navbar), including issues, releases, pull requests.
Poster

Danke. I have other projects to migrate, as well. Will start using the migrate button from now on.

Danke. I have other projects to migrate, as well. Will start using the *migrate* button from now on.
6543 commented 2 weeks ago
Poster
Collaborator

@spiraldancing Codeberg's Default Branch is set to main

@spiraldancing Codeberg's Default Branch is set to `main`
Sign in to join this conversation.
Loading…
There is no content yet.