How to set up a Git Repository for my server
Windows
Buy a server
Buy a VPS or dedicated server from ZAP-Hosting, use code
TheWolfBadger-4765
for 20% off
Install Git Bash
Login to Git Bash
Coming Soon...
Initiate Git repository
You will want to navigate to the directory where your
resources
folder is located.You will then want to type
git init
You will then type
git add .
You will then type
git commit
and enter a message for the commit (maybeInitial Commit
?)You will now need to create a remote repository to link this local repository up to.
Create Remote repository

You will need have a remote repository initialized on GitHub.

Connect to Remote
Within your git bash terminal you will run the following as GitHub has instructed you to
git remote add origin https://github.com/JaredScar/CollectiveM-Server.git
git branch -M main
git push -u origin main
This will push the changes in your current local branch to the remote branch
Using GitHub Desktop
Coming Soon...
Last updated
Was this helpful?