Any easy way to upload a file to github from c#? - github

I want to be able to do a simple upload of a file to a github repo in c#.net code. Anyway of doing it without setting up a local repo and doing commits?

Related

How can I add a repository to github with terminal?

We have to create repository and upload the data from one application to github , with out storing any data in application system ... It is possible
How is the data currently stored? You could .gitignore the files you don't wish to push if saved within your directory, and follow these directions to store your code in the repo from the GitHub command line.
https://docs.github.com/en/github/importing-your-projects-to-github/importing-source-code-to-github/adding-an-existing-project-to-github-using-the-command-line
You could alternatively create the repo in GitHub and link it to your local repo:
https://docs.github.com/en/github/importing-your-projects-to-github/importing-source-code-to-github/importing-a-git-repository-using-the-command-line

Acess GitHub repository using ftp

Hello is there any way I can acess my GitHub Repostiry files using a FTP server
I want to make a image gallery site where I can upload images using a ftp connection
No, a git repository is not simply a directory of files, and thus, FTP is not a tool that can deal with that. You'll have to learn basic git usage.
Anyway, an image gallery site is definitely not the kind of thing you want to host as git repository somewhere; wrong approach.

Copy files from github via SSH using SCP

I'm trying to download a file from github repository and I would like to use ssh (using scp) instead of downloading it via HTTPS. Is that even possible? Could you give an example? Thanks.
No it's not possible. Git repositories don't consist of the actual files, but a collection of the incremental changes.
Therefore you have to clone a repository to get the file.
Github only offers the HTTPS download as "services".

How to upload a file into a repo?

I have a free version github account where I created a repo and I need to add a 670KB text file (it has test data) into this repo. I use IE browser and Windows XP OS, and haven't downloaded or installed any gihub software or app into my local system.
How do you directly upload the file into the repo without creating a file and then copying the content?
Github is supposed to be used wit git, a version control system. You need to use git in order to download/upload/update files inside a github repo.
You can also create a file directly inside Github by clicking on the little button on the right of your repo's name:
And then you can modify it inside Github by clicking on it.

How do you completely remove a file on github

I've seen the command needed to remove a file and erase it from the history on git. Is there a way to do this with the github website? If not, it looks like I need to know where the file is to do it with a git command. Where does github store the local repositories?
See: https://help.github.com/articles/remove-sensitive-data
To get a local version of the repository, look up the URL from the repo page on Github and clone as explained in the link above.