Skip to content

Lesson 7: Git Error - 'main/' does not have a comit checked out #1102

Discussion options

You must be logged in to vote

@SebasAran16 Follow these commands and where you face an issue, paste the error codes here. I will check that.

You should be at the root level of the project folder.

  1. git init
  2. git add .
  3. git commit -m "initial commit"
  4. git remote add origin url-of-your-github-repo-here
  5. git branch -M main
  6. git push -u origin main

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@SebasAran16
Comment options

@TradMod
Comment options

@TradMod
Comment options

@TradMod
Comment options

@SebasAran16
Comment options

Comment options

You must be logged in to vote
1 reply
@clementkasun
Comment options

Answer selected by SebasAran16
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants