Copy files from github via SSH using SCP - github

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".

Related

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.

Can I use external location as a separate server for git-lfs?

I have a repository on GitHub.com. I need to add a large file to it (>1GB). git-lfs seems to be the solution but GitHub probably offers only upto 2GB for free. Can I use any other location as a separate large file server while the actual codes stay in GitHub?
I tried configuring lfs Endpoint to the Azure devops repo and the git origin to GitHub.com. It does not seem to be working that way.

How to deploy a Javascript application on gitHub?

I have a application built using HTML5,CSS3,Bootstrap,Javascript and Jquery.I want to deploy the application on github .
Any suggestions on how to achieve it ?
I'd suggest you to read some guides firstly. Like this one:
https://guides.github.com/activities/hello-world/
You have to install git on your local PC, then create your own repository on git and clone it to your computer. After that, you will be able to store your JS project in that repository and simply commit, push and pull all tha changes you did.
Have fun!

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.

Synchronize github with godaddy account

I develop front-end and back-end of many websites hosted on godaddy. I was looking for a way to synchronize the godaddy file manager with my local repository so as to prevent me from uploading the edited files each time. I push my code to github directly, but is there a way to push the code directly to godaddy account without using its file manager?
Also sometimes, with other systems, I edit the code directly on the server if I get some problems with the code, which becomes then difficult to get it on my local system.
It would be of great help to directly push it without using the file manager each time.
It would be best to:
install Git on Godaddy (as in this blog post)
setup a bare repo on the upstream side (ie, the GoDady side, the one where you would push your code)
add a post-receive hook on that upstream repo in order for a non-bare repo to update itself: see links in the "Is --bare option equal to core.bare config in Git?" answer.