Jump to content
Fancy running a forum? Sheffield Forum is for sale! Learn more
Sign in to follow this  

Using Git And / Or Command Line To Upload To Webspace.

Recommended Posts

git probably not, command line then ftp or some of the ssh tools it depends what the other end is

Share this post


Link to post
Share on other sites

yeah, Git isn't really designed that way, it's more of a hosting site for code, where people can all contribute to the same code-base, and changes are applied and tracked etc...

Where as command-line, is just that - a text based interface to issue commands, you would (as said above) need to use FTP (this is a built in command in all OS') 

on windows for example, you would open command prompt, then type...
ftp <enter>
open address.to.site <enter>

- it will then ask you for the username and password etc, once logged in you will need to know the commands to navigate the structure and upload the files..

There are much easier (GUI based) tools to do the same, what is it exactly you are wanting to accomplish? 

Share this post


Link to post
Share on other sites

Depends on what you're doing with your git repository. Many sites like Netlify will hook into Github for example and as soon as you do a commit to Master/Main then it'll do a push to your website on Netlify.

 

So yes you can use a command line Git command to publish your site. For example, a merge into Main will trigger a build on CircleCI which could build a Docker image and push it into your Kubernetes environment....all depends what you want to do.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.