Jump to content
  • 0
Sign in to follow this  
kerbiii

help i have some questions

Question

1. How to know my hercules revision

 

2. How to update using git but keeping the changes i made

 

3. how to merge the changes i made and the update in git pull?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

If your server's live and running, type @version in-game to retrieve the GIT hash. Alternatively, you can check it from a command line, like this:

git rev-parse HEAD

 

If you want the short version of the hash, type this instead:

git rev-parse --short HEAD

 


 

Assuming you're still using the command line to operate git, you can merge new updates with this command:

git pull --commit

 


 

To stay updated with ease, simply just make changes for your server within the same working copy that you use for GIT. Concurrent changes are handled fairly well, so unless you've made mass updates, you should be fine. I recommend that you make backups if you're unsure of whether or not updating will conflict with your customisations.

Share this post


Link to post
Share on other sites
  • 0

If your server's live and running, type @version in-game to retrieve the GIT hash. Alternatively, you can check it from a command line, like this:

git rev-parse HEAD

 

If you want the short version of the hash, type this instead:

git rev-parse --short HEAD

 


 

Assuming you're still using the command line to operate git, you can merge new updates with this command:

git pull --commit

 


 

To stay updated with ease, simply just make changes for your server within the same working copy that you use for GIT. Concurrent changes are handled fairly well, so unless you've made mass updates, you should be fine. I recommend that you make backups if you're unsure of whether or not updating will conflict with your customisations.

thanks

 

meaning:

 

git pull --commit will update my rev at the sametime will keep all my changes?

Share this post


Link to post
Share on other sites
  • 0

thanks

 

meaning:

 

git pull --commit will update my rev at the sametime will keep all my changes?

 

As long as you don't have anything that conflicts with the update, you'll be fine in most cases. In the event that you do have conflicts, a manual update may be needed. Your own changes won't be discarded unless you confirm that's what you want to do.

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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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