I created a new repository on GitHub and then cloned it with my local folder using GitHub Desktop. I did not use ANY commands using a Command Prompt to push or pull.
I then moved another folder with 3 files including an index.html into this local folder which is now synced with the GitHub. I can see this folder and the 3 files when I log into GitHub online.
I have also got a public website address for the repository and I have selected a default theme on it. The default this works when I browse to it.
But I can not get to the subfolder which holds index.html like below:
https://myname.github.io/Projects/Project1/
Here "Projects" is the repository which is synced with a local folder and "Project1" is a subfolder containing the index.html which I want to access online.
Please help. Thanks.
Related
I'm very new to Github and I'm trying to create a new repository that contains 2 folders ("server" and "utalk").
The "utalk" folder is my front-end and the "server" folder is my backend.
But when I use Github Desktop, it seems I only push the server folder and cant push the utalk folder.
I don't know how to push all my folders.
my Project Folder:
my GitHub repository:
First, in your file explorer, enable View hidden files
Then check if you see a .git in the utalk folder. That would make it a nested git repository, mostly ignored by your parent folder.
Switch to command-line and do a git status in utalk-project to know more about your current situation.
This is a screenshot of my repo in the github.com and i copied the url from Code > HTTPS
Then paste the url to the application url tab but it didn't add any changes files and i can't click the commit button.
On my hard disk in the project folder i created a new folder named it Git and selected this folder when paste the url to the application :
The Git folder was empty now it have some files :
And last a screenshot on my hard disk the project with the Git folder and inside it created a sub folder and inside two files :
What am i missing ?
I tried to follow this tutorial in youtube :
https://www.youtube.com/watch?v=qpXxcvS-g3g
Cut the files (.gitattributes, README.md and .git folder) from the newly created subfolder and paste them into the folder that contains the files that you want to see displayed on the Git desktop. Try to reopen the git desktop and you will see your files. On your case cut the files from the local path that ends with LineRendered-controller and paste them into the folder Git
To get the files to show up in GH desktop navigate the branch the files were uploaded to then click fetch origin then Pull origin on the top navbar.
Github repo I'm referencing: https://github.com/Dallas-Marshall/PersonalProjects/tree/master/discord_bot
I have a Personal Projects Repository on Github and have a README.md file in the root folder explaining the repo. However, the issue I am having is that inside a directory of the repo I have created another README.md file to explain that specific project but Github is not displaying it.
I have ensured the file is named correctly, is up to date on Github and have scanned settings to try and find an option to display it to no avail as yet.
Does anyone know how to get this file to display when viewing the directory that I have linked above.
Many Thanks,
Dallas Marshall
Your readme in the linked repo folder is empty. GitHub will start displaying it once it got content in it.
I'm new at GitHub and I'm having this issue: I created three private repositories for my project, all fine. On the fourth one, for some reason GitHub desktop included the node_modules folder (its an angular cli app), so I deleted the repository from GitHub.com and from GitHub desktop. When I try to recreate it, it is "cached" on my Mac, even if I copy everything to another folder, and it tries to upload the node_module files.
I also changed the name of the repository, copied all the files but node_modules folder to another folder. Same happens over and over.
I couldn't find anything on internet about this. Sorry if its a newbie question.
You could try to delete the git folder that it's being hidden by default.
Go to in file explore -Views- select "Hidden Items" and try to remove the git folder from here. After that set up your .gitignore file and pass node_modules before you use git init
Use this in your terminal, if you are using VS Code use this in the same folder you are having the problem : git config --global core.excludesfile '~/.gitignore'
I am new to git. I downloaded the desktop version (for Windows). I dragged the folder containing my project into the big window, "Get started by adding a repository." All the files showed up in the left window. Then I clicked on "Publish Repository". It then shows 143 files have changed, with 0 unsynced.
But when I go to my account on the git website, the repository is empty. The only files in it are .gitattributes and .gitignore. The whole idea here is that I want to share this project with other people.
Help out a git newbie and explain how I get the entire solution into git?
Thanks!
As you already have the remote repository at GitHub, you should use the clone option first to clone your repository locally.
This will create a folder (your repository clone) on the default location containing those two files.
Then you can copy your project files to this folder and try to sync again.