A
A
Alex ALex2019-11-20 13:08:35
git
Alex ALex, 2019-11-20 13:08:35

When executing the checkout command in GIT, it displays an error, what's wrong?

1) Run Git init in the middle of my project
2) Check files Git status
3) Run Git add .
4) I checked all the files were green Git status
5) I did not make the layout correctly.
6) I checked that Git status has changed where
7) Almost all files have a change and now when executing the Git checkout command, it displays such garbage fatal: You are on a branch yet to be born what to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vadim, 2019-11-20
@senchkim

and what does the command `git branch -a` show you?

T
toxa82, 2019-11-20
@toxa82

Checkout does not allow to do if files that change during checkout are changed and not committed. You need to commit or remove changes to files if they are not needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question