Help centre / Get started

Git and VS Code

Every site is a git repository. Push and the site is published.

Every site has its own git repository. When you push to the site's branch (normally main) it is published automatically.

1. Create an access token

Go to Account → Access tokens and create a token. It is the password for git. The username is your email address.

2. Clone or add it as a remote

git clone https://git.myhub.se/my-site.git
# or in an existing project:
git remote add myhub https://git.myhub.se/my-site.git
git push myhub main

In VS Code: open the site in the panel and click Open in VS Code. VS Code asks for the username and token the first time and saves them.

Git is protected by sign-in – only someone with an account with access and a valid token can read or push.


Did you get an answer to your question? Otherwise – kontakta supporten.