Files not showing up in github repo #8029
Closed
myusernamedm
started this conversation in
General
Replies: 1 comment
-
|
This has been resolved. It turns out I had a gitignore file which was simply using * to ignore all files! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Please see attached a screenshot of my local repo. I have been working on this app, including pushing and pulling with no issue. I have created branches, merged to main and deleted those branches from remote and local. However, when I have recently looked at my remote in GitHub none of my files are showing. Please see attached.
Despite searching and seeing similar issues from other users, I cannot figure out whats going on. Any advice would be appreciated?
I have tried checking that local and remote are in sync using the below without any change:
git remote -vorigin https://github.com/myusernamedm/sentiment_app.git (fetch)
origin https://github.com/myusernamedm/sentiment_app.git (push)
git commit -m "sync files"On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
git push origin mainEverything up-to-date
I also tried the following and the issue remains:
git push -fgit push --forcegit push sentiment_app main --forceI also tried removing my remote, setting up a new repo and adding it as remote. I then pushed to it using
git push --all, but I get the same issue. Only main.py is showing in the remote. Note. I do not have an ignore file.I can add files manually through the GitHub remote UI. After doing this and syncing, local the files can now be edited and merged to main or a new feature branch with no issue. But a new local branch HEAD is showing which does not exist on remote and cannot be removed.
Update: When I add a file in VS Code using the New File icon, it is created in my local folder, but my source control is not showing any changes for me to push. So all the files I have created and worked on, are not being detected by source control. How do I fix this?
Beta Was this translation helpful? Give feedback.
All reactions