Hi,
I just installed git on my mac, now I want to be able to push my local repo to my shared hosting.
The shared hosting has git installed, now I am wondering how I have to set it up to be able to push my local repo to the shared hosting server.
Hi,
I just installed git on my mac, now I want to be able to push my local repo to my shared hosting.
The shared hosting has git installed, now I am wondering how I have to set it up to be able to push my local repo to the shared hosting server.
For further actions, you may consider blocking this person and/or reporting abuse
Dima Sukharev -
Darsh -
Pragyan Tripathi -
Grant -
Once suspended, ian will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, ian will be able to comment and publish posts again.
Once unpublished, all posts by ian will become hidden and only accessible to themselves.
If ian is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Ian.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag ian:
Unflagging ian will restore default visibility to their posts.
Top comments (6)
Hi Ian,
what you are looking for is "git remote add" and then "git push".
The first commands tells your local git repository where is the remote one and the second syncs your code from your local repository to the remote repository.
In order:
You can find a guide here: git-scm.com/book/en/v2/Git-Basics-...
Hi,
Thank you for you answer, I am not sure which URL to use since this is a shared hosting server.
Is there any public documentation I might look at?
What's the hosting server?
It is an own server running froxlor.
The user has SSH access and a domain pointing at /var/customers/webs/USERNAME
In his documentroot (/var/customers/webs/USERNAME) there is a .git folder.
Ah ok! So you need git + ssh.
Assuming you have the rights to access that folder, it should be something like this:
git remote add origin ssh://username@host/var/customers/webs/username/folder.git
Works, thank you!