Jump to content
  • 0
Thyr

Updating Hercules [git pull problem]

Question

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  here

Typed "git pull"

and this error comes

[root@ragnarok Trunk]# git pull
fatal: Not a git repository (or any of the parent directories): .git

 

 

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.