I have been uploading all the coding projects I have done in free code camp and from youtube (with referencing) into a Github codespace into a repository I have created. I have one issue. When I created the repository, I uploaded three folders which is displayed when I view my repository as a external viewer. However, as I uploaded newer files and folders, they do not show in my repository when I view it as an external viewer. I can only see it when I open my codespace. But I would like people who view my github account to view all my projects. How do I do that?
I have asked gemini, chat gpt, websites, etc. but all the commands I tried from file merges, changing terminals, putting all folders into the same terminal were to no avail, and only the three originally uploaded folders remained visible to external viewers. Is there any way you guys can help me out?
In the image where I am in my codespace, the folders highlighted in green are the ones that appear in my repository as I view as an external viewer but the ones highlighted in orange are the ones that do not show up in the repository as an external viewer and can only be seen if I enter my codespace.
Thank you in advance for anyone out there that can help me out here!
Iām not sure but I uploaded the 3 original folders by right clicking and then selecting upload. I did this through visual studio code which was on git hub as my platform for my codespace. I did the same with the other folders, but only long after the repository was created.
I googled how to connect but Iām still not sure so the output is shown in the picture below (I first entered the command from the stackoverflow hyperlink you attached which made me a āmasterā? and then I did the check on whether my git and git hub are connected.
Iām also new to github so I am a bit blur with how the repository, git and github works.
Okay then you uploaded them manually without Git and It seems (according to your screenshots) your local Git isnāt connected to your GitHub account.
I suggest you follow these steps:
Try to link your Git and GitHub together (watch this video itās good you can even google it to know how to do it) ā donāt go to the next step until you are sure they are connected even for certainty try to build another repo and examine the connection there. (Notice: your username and email must be the same in Git as in GitHub )
After step 1 has been done now in your local machine do this:
Be sure you have the vs code on the local computer
Hey @aminalizadeh, I am three-fourths through the video you sent in the hyperlink but I am stuck at the editing mystyle.css.
Iām doing this on powershell, which does not have the ā$ā at the beginning of each line but it still works until this point. I am not sure what is the alternative command to āviā
Just consider this try to use just one command line app and only one text editor I think you are using different tools and this is the root reason for your problems
I donāt know your operating system but my suggestion is:
If itās Windows try to use Powershell only
If itās Mac or GNU/Linux try to use Terminal only
About the screenshot and the issue you faced, the reason is you want to open the mystyle.css file with vi text editor(but you didnāt install it on your machine and it caused the not recognized error trying to open your folder and files of the codebase (project) with vs code by using code mystyle.css
Hey @aminalizadeh , Iām starting to get a grip on how these things work so I will start adding uniformity by using powershell for windows and vs code for a text editor (does that mean coding?).
For the mystyle.css, I came across this website: VIM text editor (I canāt attach hyperlinks)
Is it the site to download the vi text editor? I downloaded the first executable file from the image shown below:
Before I allowed the file to make changes to my computer, I checked the publisher but it says it was unknown so I am a bit hesitant in allowing it to make changes to my computer, is it safe to allow?
Vim is a terminal-based text editor and itās not beginner-friendly (I suggest you stick to the vs code) Itās only keyboard-based and you canāt edit your text files using the mouse.
If you want to edit any text file (HTML, CSS, JS, ā¦) only use vs code there are lots of free contents on how to use it on the internet
But if you decide to keep going with Vim this video is good for solving your installation issue.
@Trevski Iām Happy to see you connected Git and GitHub plus I see you cloned the repo successfully Great!
when you run the code . it means to open the current directory inside the vs code IDE
you have to see the vs code opens automatically
After opening the vs code follow this tutorial to push your custom files or folders (try to understand the push - commit - add commands of git
About your last question, you have a repo (Personal-Coding_projectsāCybersecurity) and you already cloned it open it inside the vs code and drag and drop the projects that you want to add (itās easy to drag and drop) then push them to your repository on GitHub (you donāt have to repeat any line of code one push command is enough but before push you have to first add it then commit it then you can push them. (follow the tutorial I shared)
HI @aminalizadeh , I watched the tutorial you attached in the link and I followed it. On my side I mistakenly pushed the folder into my master branch in my repository but it is not the default branch.
My default branch is: codespace-super-system-w4r9p95xqqx3g9g7. However, when I put it into git push origin ābranch nameā. This is the error message shown below. This branch was the branch I was given when I first made this repository.
Also, I would like to push the folder as a whole instead of pushing all the individual files as when it is pushed into Git Hub, it only shows the files laying scattered without being in a folder. Is there a command for it like git init folder? I think I can find this out on my own if it is more convenient for you but I am still confused about the branch thing as the branch name I put is the same as the branch name displayed on github.