Github cannot access the folder after clicking

I worked in a folder and could well push / pull with github. But now I'm trying to wrap this folder different, and after clicking on the new folder in github I can’t access the subfolder (it exists in github, but cannot be clicked). If someone pulled it from github, this is apparently the correct file size, but nothing in the subfolder.

How i work:

  • I work in a folder and configure git there. I usually paste this folder into github.
  • Then I put this folder in the Aptana project folder, installing git from the project folder.
  • I installed git from the third folder, pulled it out of github and deleted the contents. I moved the contents of the Aptana project folder, rewritten everything in the “internal folder” (the one I was working on), and also rewritten the Aptana project folder.
  • I did push and the subfolder seems empty on github

I worked on a different branch than before the "master", but it seems that switching it to the master does not help.

Does anyone know what I can do with this? Thank you very much!:)

+4
source share
1 answer

How could you manage this kind of transition:

  • Given your current repo (containing .git ) as the destination directory (e.g. Aptana folder)
  • recreate the start folder below the repo root directory
  • moving content in this new folder (Git recognizes that it is the same content, just in a new place),
  • add new elements (for example, Aptana project files)
  • add all ( git add -A ) and commit
  • then click.

You can control the quality of this migration before returning to GitHub by cloning a local modified repo and see if everything in this local clone has everything in the right (new) place.

+4
source

Source: https://habr.com/ru/post/1380549/


All Articles