Removing Sensitive Data From Github using GUI? - github

I accidentally uploaded a bunch of very sensitive client projects to Github. I need to remove them immediately.
I'm very new to Git. I don't know how to use the terminal. I'm using Github Desktop on Mac. Can someone please explain it to me in the simplest terms possible how to quickly and effectively purge/remove full directories from a GitHub repository's history without using terminal? (or very very simple specific instructions on how to use terminal to do this?)
I found some terminal directions already through Google, but I don't know how to use it. I can't find any option on github.com to do it via browser, and the Desktop app doesn't seem to allow history of files or directories.

Related

How can I get all my installed vscode Extensions via something like a fetch in Javascript

I know how to get all local extensions installed via the terminal and just one line but that's not ideal for what I need them. I made a personal hobby website with NextJS and I have a site displaying all my extensions, currently I just have the output of the terminal plugged into a js file but that, as you can imagine, isn't really what I wanna do as soon as I install a new extension or disable/uninstall one...
I could imagine that there would be a git repo you can "ask" because I synced my extensions with my github account. Sadly Google won't tell me how... and I didn't find a magical Repo which was private in my github either
I hope there is a magic URL that I can fetch from to get a list of all names of the extensions installed for my account

How to open your own github repo from github.dev

In the new product of Microsoft, github.dev, you are automatically forwarded to a VSCode web IDE. However, I am not sure if it is possible to open your own repo (hosted on github.com), work on it and push the changes. Can you help explain if this can be done and how?
I do not seem to find a straightforward tutorial on that.
Note that I was able to open a repo of mine by clicking on the blue GitHub icon in the bottom left corner, but I fail to install a terminal, because
Terminals are not available for web editor. To use terminal you need to continue working in an environment that can run code, like codespaces or local VS Code
I read that codespaces are a paid option for github enterprise, but the way this error message is written might suggest other ways.
Opening your repository
You can open your repository by visiting it's page on GitHub and pressing . to open it in github.dev. You can also use the url format https://github.dev/<username>/<repo-name> with the path to your repository.
Making Commits
While the terminal cannot be used in the editor, you can make commits using the VSCode source control system.

When using the builtin settings sync on vscode, where are the actual files?

I'm using the builtin setting sync with vscode (not the extension), I've successfully synced, yet I do not see the actual files anywhere through github. Do these files exist somewhere that is accessible through github?
From what I can tell the files are not accessible through github, obviously they are at the root of the repo in .vscode/, but I'd love to actually see the backed up version.
The way I handled this with vim was to add a source command in the .vimrc, then link that to it's own github repo.
I guess I'll have to just trust that github and vscode have it handled

Windows Github issue pushing a new folder

I'm a VSS (Visual source safe) & Dropbox guy but new to GitHub. I'm using Windows Github tool to manage repositories on our remote server as I concluded in my previous SO post. I was glad to have sought this single point easy to use tool without any need for a deeper knowledge of git.
Things have been working fine until one day I had to add a new folder
to my repository. The Windows Github tool wouldn't recognize the
folder as a new content to be pushed! After some struggle I derived
that it "does" maintain sync with my "initial folders" but simply
creating a new folder in the repository directory wouldn't sync it
like Dropbox!
I searched to know how I can do it or if I had to use GitShell. My bad any I tried it, failed. Finally, I decided to purge everything and re-create the repository folder structure with this new folder like I did with my initial setup. But I don't know how or why it kept saying that the /.git/index file was being used by another process. I tried to empty this folder but it wouldn't. Finally, a logoff was able to free that file for me and I re-created everything. Pheew!
I might be doing it wrong as a newbie or even misusing Git due to my Dropbox habits. Pls correct me! What would be the best way?
My usage is more like VSS & dropbox(with version control) in a small remotely connected team. I started with this simple Windows Github tutorial. What about the following two -
TortoiseGit
msysgit
Do they provide better management? Pls suggest if Windows GitHub is the best (if so how to add folders later?)
Just in case, do note that adding a folder won't trigger anything for Git: you won't be able to push it if that folder is empty, because Git will consider it as "no content", and will ignore that new folder.
See also "How do I add an empty directory to a git repository?".
If you add a folder and some files in it, then the GitHub for Windows interface will detect that new content, and ask you to add and commit, which means you will be able to push.

Using GitHub to listen to changes made to files on remote server

I know there are a lot of posts about running GitHub on a remote server, but I can't find any that I understand or can follow. Command line stuff and all this talk about SSH completely befuddle me, so I am hoping for a step-by-step answer which is literally written for a dummy and hopefully provides an easy solution (I am having my fingers and toes crossed).
My scenario:
I have built a site using Statamic as a CMS, which uses text files to manage the site's content. I also have a GitHub repository which contains most of the site's files here:
https://github.com/katrinkerber/katrinkerber
I am using the GitHub app on OSX to push any changes I make to, for example, my local CSS or HTML files to the remote Github repository. That is as far as my basic understanding of Git takes me really.
Whenever existing content is edited or a new page/entry is published through the CMS's Control Panel, a file is updated or created inside the *_content* folder on the server where the site is hosted.
What I want is for Github to listen to and keep track of any changes made on the server, particularly that *_content* folder.
One of my attempts was to just upload the .git folder in my local files to my server and change the Primary remote repository path, but that didn't work.
What do I need to do?
Really the only way to run Git (the version control system, not GitHub the web application/network) is via SSH.
Here's a good article: http://git-scm.com/book/en/Getting-Started-Installing-Git#Installing-on-Linux
And if you get that up and running, here's a good way to set up deployments: http://blog.ekynoxe.com/2011/10/22/automated-deployment-on-remote-server-with-git/