Knowledge base
1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!
Using GIT and GitHub with Web Hosting
Update 06/05/2026
This guide details how to create a GIT repository on both your Web Hosting and your Cloud Server with Infomaniak.
Introduction
- GIT and GitHub are available by default on both of the aforementioned platforms.
Creating the GIT repository
Setup on the server:
- The GIT repository is located at
/git_depot - The website is located in the
/web/[project]folder (on your FTP server)
Commands to enter:
cd
mkdir git_depot
cd git_depot/
git init --bare [projet].git
cd [projet].git
git update-server-info
Sending the local repository to the server
To be done on the local machine:
git init
git remote add origin ssh://user@[xxxxx].ftp.infomaniak.com:/home/clients/[123456789]/git_depot/[projet].git
git status
git add .
git commit -a -m "init"
git push --set-upstream origin master
git push
Cloning the website to the server directory
To be done on the server:
cd
cd web
rm -r [projet]/
git clone /home/clients/[123465789]/git_depot/[projet].git [projet]/Link to this FAQ: https://faq.infomaniak.com/2463
Has this FAQ been helpful?