• 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

  • 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

Posted (edited)

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?

Edited by astralprojection

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now