Skip to content

Git add error - error: 'main/' does not have a commit checked out #23461

Discussion options

You must be logged in to vote

There may be directory called Main, If you can find directory called Main , there may be .git folder hidden into it.

If there is nothing else in Main directory, you may try deleting it and then re-run commands.

Hopefully it should work

Replies: 16 comments 22 replies

Comment options

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

Comment options

You must be logged in to vote
2 replies
@moarifur
Comment options

@moarifur
Comment options

Comment options

You must be logged in to vote
11 replies
@piotrpalacz
Comment options

@Krocsky
Comment options

@lumax007
Comment options

@jmsn123
Comment options

@moarifur
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Oku1-Android
Comment options

@sahar-Nosrati
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@nouman-here
Comment options

@nouman-here
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@wajid46
Comment options

@ali-omni
Comment options

@sahar-Nosrati
Comment options

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