Thyr 0 Posted June 1, 2017 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 Quote Share this post Link to post Share on other sites
0 meko 170 Posted June 1, 2017 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: Delete the folder you unzipped to (it's likely too messy by now) Create a github account Make note of your github username Log in to your github account Go to https://github.com/HerculesWS/Hercules and click the Fork button 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 Now that you have a clean environment set up, build Hercules from this Hercules directory And thereafter, whenever you want to update: Connect through ssh to your vps: cd Hercules git pull upstream master ... 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 1 Sephus reacted to this Quote Share this post Link to post Share on other sites
0 Sephus 203 Posted June 1, 2017 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. Quote Share this post Link to post Share on other sites
0 Vy Low 11 Posted June 2, 2017 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 Quote Share this post Link to post Share on other sites
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
Share this post
Link to post
Share on other sites