Updating Hercules [git pull problem]

Thyr

New member
Messages
78
Points
0
Github
warcraftfrozen
Hello,

I download the Hercules emulator from https://github.com/HerculesWS/Hercules and downloaded as ZIP.

and then I order a Linux VPS to host it, then i used that as my emulator. When i found there's an update in hercules recently.

I want to update it to the latest.

My Hercules Emulator is currently running on VPS. using Winscp to view it. So in Putty

I followed the guide Updating a working copy from  herehttp://herc.ws/board/topic/152-obtaining-hercules/?p=846

Typed "git pull"

and this error comes

Code:
[root@ragnarok Trunk]# git pull
fatal: Not a git repository (or any of the parent directories): .git
 
It seems you did not hear my advise and learn the basics of git;

The reason you cannot pull is because you do not have a git environment: you downloaded a zip instead of cloning.

Do the following:

  1. Delete the folder you unzipped to (it's likely too messy by now)
  2. Create a github account
  3. Make note of your github username
  4. Log in to your github account
  5. Go to https://github.com/HerculesWS/Hercules and click the Fork button
  6. Open an ssh connection to your VPS and use the following commands one by one: git clone --origin upstream git://github.com/HerculesWS/Hercules.git

    git config --global url."https://".pushinsteadOf git://

    cd Hercules

    git remote add origin git://github.com/<your github username>/Hercules.git

    git fetch --all
  7. Now that you have a clean environment set up, build Hercules from this Hercules directory


And thereafter, whenever you want to update:

  1. Connect through ssh to your vps: cd Hercules
    git pull upstream master
  2. ... and then build again



PS- forking is usually not necessary if you just want to run a vanilla server, but if you ever want to make modifications you'll have this fork ready

PS2- I noticed you are logged in to your VPS as root; running a publicly accessible server (ie Hercules) from a superuser account is very bad practice, as if any vulnerability is found the attacker would gain FULL ACCESS to your VPS

 
Last edited by a moderator:
we should have an FAQ or general knowledge section that addresses these simple know-hows of modern computing. And then link people. Maybe those that are already familiar could also learn a few more things from a developer's perspective.

 
Last edited by a moderator:
we should have an FAQ or general knowledge section that addresses these simple know-hows of modern computing. And then link people. Maybe those that are already familiar could also learn a few more things from a developer's perspective.
Totally agree with you smoke

 
Back
Top