'New Web Dev person and need help on GitHub
I am new to GitHub and having issues uploading a website.....
When I upload to GitHub, it separates folders (Here is the image of what I am seeing GitHub) and thus website doesn't display properly.
Here is the image of the file on my computer Here is what I am seeing on computer
I attached screenshots, any help would be great....
I am confused af at this point in time
Solution 1:[1]
Try To push changes correctly as it doesn't happen usually. Read this: Open your Command prompt first then move to the particular which here contains your whole website. Start with
git init (it will initialize your folder to be pushed up or pulled to git Controls)
then git add . (To add All the files create your .gitignore file carefully)
git commit -m "Whatever you want to write us a note about the changes"
then git push -u origin main
Hope Your problem will be solved or maybe something you can only diagnose because you are there sitting and functioning **Note If there is any folder containing called .git, delete that. Before proceeding the way I mentioned **
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
