Jump to content
  • 0
rans

Question about Using Git to update

Question

Hi,
Im not really familiar with Git or i mean im newbie.
I just want to know how could I create my own repository of hercules but will still get update from the main repository of hercules when i git pull? 
if you could elaborate of what and how to do it specifically it would be very appreciated. thank you!

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

If you cloned the Hercules repo to your local machine, you should be able to get updates directly using `git pull`,
however if you forked Hercules repo and clone your fork to your local machine, you will need to sync your fork with
the Hercules repo first. After that you should be able to do a git pull and get the updates.

Share this post


Link to post
Share on other sites
  • 0
19 minutes ago, astralprojection said:

Deym! I also not sure how to use git. Still using svn update and its so ancient haha.

1. How to clone

2. How to get update? Will my source or script mod remains when i update?

You can clone by using the git clone command followed by the url provided by the repository. Example for hercules:
git clone https://github.com/HerculesWS/Hercules.git

Or better yet, you can use tools like Github Desktop or Source Tree to make git a lot more doable :) 

Provided that your scripts and mods do not conflict with the updates, they should still be there after update. Otherwise, you will need to resolve merge conflicts.

Share this post


Link to post
Share on other sites
  • 0
17 minutes ago, Takari said:

Provided that your scripts and mods do not conflict with the updates, they should still be there after update. Otherwise, you will need to resolve merge conflicts.

will you kindly tell me what command line to git update and merge? I use Linux.

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, astralprojection said:

will you kindly tell me what command line to git update and merge? I use Linux.

`git pull` to pull updates from the repository

`git merge {branch_to_merge}` to merge two branches together

It's the same for all platforms (Linux, MacOS, Windows, etc)

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.