> For the complete documentation index, see [llms.txt](https://docs.netcoresaas.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.netcoresaas.com/getting-started/deploy/initialize-git.md).

# Initialize git repository

Open the terminal at the base directory and type:

```
git init
git remote add origin https://github.com/You/your-repository.git
git add .
git commit -am "initial"
git push origin master
```

{% hint style="info" %}
If your repository is not empty, first pull changes or your push will be rejected. Run this before pushing:

git pull origin master
{% endhint %}
