Why did the folders in my github directory turn gray and empty?

Asked

Viewed 843 times

1

Here’s how they turned out:

Github

I sent it with bash using git push --force because the normal push wasn’t working. Can anyone tell me what happened and how to fix it? the folders are not empty in the original directory of my pc but on github so it turned gray instead of blue which is the color they use for folders.

  • Have you tried to create a submodule? What is the output of git remote -v? If you registered submodules they have to be valid on Github as well. If not you can always remove submodules with git submodule deinit NomeDoModulo. By the way, if you’ve cloned this repository, maybe it’s more productive to take this doubt for the Loiane.

  • I deleted everything and created a new directory and does not add the folders. When I do git push origin master it appears to me: Usage: git remote add [<options>] <name> <url> -f, --fetch fetch the remote branches --tags import all tags and Associated Objects when fetching or do not fetch any tag at all (--no-tags) -t, -track <branch> branch(s) to track -m, -master <branch> master branch --mirror[=<push|fetch>] set up remote as a mirror to push or fetch from

  • My git does not recognize folders even if they are not empty.

  • You first need to make one git init, add and commit changes locally, add the remote repository and only then do the push. But anyway this is another question. the reason your folders were gray and empty was broken submodules.

  • td this and yet: fatal: 'origin' does not appear to be a git Repository fatal: Could not read from remote Repository. Please make sure you have the correct access Rights and the Repository exists.

1 answer

2

"did td that and yet: fatal: 'origin' does not appear to be a git Repository fatal: Could not read from remote Repository. Please make sure you have the correct access Rights and the Repository exists."

Do the following:

  1. Remove the . git folder from your local folder
  2. Runs: git init
  3. Run: git remote add origin "url of your repository"
  4. Runs: git status

In 4 you’ll be able to see the revisions you have in your local Object marked as a change in Object. Then just add them (git add. ) and commit them (git commit and git push origin master).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.