Badger Docs
  • Welcome to Badger Docs
  • Badger's Website
  • Badger's Discord
  • 20% off hosting | Use Code: TheWolfBadger-4765
  • Fivem General Help
    • Updating Server Binaries
    • ACE Permissions
    • Getting Discord Role IDs
    • Setting up a Discord Webhook
    • Discord identifier not found
    • How to set up a Git Repository for my server
  • Fivem Discord Scripts
    • Introduction
    • BadgerTools
    • DiscordChatRoles
    • DiscordAcePerms
    • DiscordPedPerms
    • DiscordWeaponPerms
    • DiscordVehiclesRestrict
    • DiscordTagIDs
    • PoliceEMSActivity
    • BadgerCopChat
    • DiscordDonatorPerks
    • Badger-911
    • Bad-Scoreboard
    • Bad-DiscordQueue
    • Badger_Discord_API
      • Installation
      • GetRoleIdFromRoleName
      • CheckEqual
      • IsDiscordEmailVerified
      • GetDiscordEmail
      • GetDiscordName
      • GetDiscordAvatar
      • GetDiscordNickname
      • GetDiscordRoles
      • GetGuildIcon
      • GetGuildSplash
      • GetGuildName
      • GetGuildDescription
      • GetGuildMemberCount
      • GetGuildOnlineMemberCount
      • GetGuildRoleList
    • DiscordVehicleRestrictions
  • Fivem Misc. Scripts
    • Introduction
    • BadgerAnims
    • BadgerBankRobbery
    • VehicleTrustSystem
    • PedTrustSystem
    • BadgerVoting
    • BadgerTracer
    • Fivem Keybase Anticheat
    • DiscordReports
    • Badger-Priorities
    • Badssentials
    • BadgerStockMarket
    • Badger-Anticheat
    • Badger_Jailing
    • BadgerFires
    • Multiverse-World-Manager
  • Badger Software
    • Introduction
    • FivemDiscordPerms
    • BadgerTrustSystem+
    • BadgerStaffPanel
    • ResourceEventScrambler
    • CollectiveBot
  • Archived Projects
  • SimpleRoleBot
  • EssentialBot
Powered by GitBook
On this page
  • Windows
  • Buy a server
  • Install Git Bash
  • Login to Git Bash
  • Initiate Git repository
  • Create Remote repository
  • Connect to Remote
  • Using GitHub Desktop

Was this helpful?

  1. Fivem General Help

How to set up a Git Repository for my server

PreviousDiscord identifier not foundNextIntroduction

Last updated 3 months ago

Was this helpful?

Windows

Buy a server

  1. Buy a VPS or dedicated server from , use code TheWolfBadger-4765 for 20% off

Install Git Bash

Login to Git Bash

Coming Soon...

Initiate Git repository

  1. You will want to navigate to the directory where your resourcesfolder is located.

  2. You will then want to type git init

  3. You will then type git add .

  4. You will then type git commit and enter a message for the commit (maybe Initial Commit?)

  5. You will now need to create a remote repository to link this local repository up to.

Create Remote repository

  1. You will need have a remote repository initialized on GitHub.

Connect to Remote

  1. 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
  1. This will push the changes in your current local branch to the remote branch

Using GitHub Desktop

Coming Soon...

ZAP-Hosting
LogoGit - Downloads