Jump to content

Recommended Posts

Posted (edited)
Hello guys,

 

After watching a tutorial on Pluralsight regarding GIT i had understand better the power of GIT and i will try to make a small tutorial that can help you setting the environment for starting to develop.

 

So i will start, i will explain shortly what i try to achieve:

 

[intro]

 

You want to start developing on L2JServer but you also want to have your own remote GIT server ( i am not sure it's write, please feel free to correct/edit my post), so you want to clone the sources then to upload it on your own GIT server ( GitHub, Bitbucket etc), but after that you also want to see what new things appear on L2JServer so you can keep your server updated with the last changes.

Also i will use IntelliJ for few commands

Now that i explained what i want to do let's start:

 

[step by step]

 

1) Open IntelliJ

2) File -> New -> Project from Version Control -> GIT

3) At git repository URL set: https://bitbucket.org/l2jserver/l2j_server.git 

4) Remove L2J origin with this command in Terminal window ( If you do not have terminal window you can find it at View -> Tool Windows -> Terminal )

git remote rm origin .

5) Now i assume you have an online GIT server when you want to push it. let's add your git project to this

git remote add origin https://YourUserName@bitbucket.org/Your ... arngit.git

6) Now check with git remote -v to see if it was added.

7) Use git branch to see what branch you use now

8 ) After you saw your branch there let's push it in your repository by using this command:

git push -u origin develop --force

9) Add l2jserver upstream by using this command:


10) Check it was added: git remote -v 

11) Fetch the upstream: git fetch upstream . It will outputA there all branches.

12) Do a small change in a file. I did in README.md then

git add README.md

git commit -m " A small commit "

git push origin

So you made a change and submited to your GIT.

13) Let's see the differences between your branch and l2jserver branch

IntelliJ: VCS -> GIT -> Branches

Then upstream/develop -> Compare.

There you will see 2 lists: one of them empty ( diff between upstream/develop and develop ) and one with a change (between develop and upstream/develop). The change is exactly your change. In the one that is now empty you will see all the times differences of what's have been added in L2jServer and you do not have.

 

I hope this will help and i am sorry if I have few mistakes here. Feel free to ask me if you have any questions.

I will take a second look later on what i write to try to improve it.

Edited by AndreiD

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


  • Posts

    • buenas no puedo poner el server On para que entren mis amigos   LoginServer # ================================================= # Settings authorization server # ================================================= # Host and port for client connections LoginserverHostname = 127.0.0.1 LoginserverPort = 2106 # Host and port for game servers LoginHost = 192.168.100.25 ( mi Ip interna) LoginPort = 9014     GameServer   # =============================== # Network Configuration Server  # # =============================== # IP which Bind Game server, * - all possible GameserverHostname = * GameserverPort = 7777 # This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname ExternalHostname = 186.158.144.71 ( Ip externa ovbio) # This is transmitted to the client from the same network, so it has to be a local IP or resolvable host name InternalHostname = 192.168.100.25 # AdvIpSystem Make more GameServerIDs. Every Ip should be Protected by a DDoS Guard. # Your Server will have Success with this system Online. AdvIPSystem = False # Address \ port LS LoginPort = 9014 LoginHost = 192.168.100.25 LoginUseCrypt = true # How to request ID of LS RequestServerID = 4 # Permission to take a different id, if requested busy AcceptAlternateID = False     en que estaria fallando ?    
    • mporeis na valeis l2jaCis i kapoio etimo project  free sources gia aCis edw https://acis.i-live.eu/index.php?topic=1974.0 server install ktl edw https://acis.i-live.eu/index.php?topic=10190.0 an dn vgaleis akrh steile mou discord margazeas2
    • Hello! I am new to l2 server creation and i need your help please!!! I want to make my own l2 interlude c6 server with custom thing in it.  I need help with where to start. What source pack to pick to start and what to do. Please if you can help me i would appreciate it very much !!!
    • Need Discord with rare badge? VISIT US AND SHOP WITH US! NEW STOCK   Aged, Early Supporter Discord Accounts I sell HQ Aged and Early, Discord Accounts that are inactive and not flagged by discord at cheap prices   If you want to contact me, you can add me on discord: worldcoldwar Features: Format - age : email : pass : token Not flagged and undetected by discord HQ % With OGE Emails, password etc can be changed Unverified Early Supporter 24M Boost Badge HypeSquad Events Early Verified Bot Developer Early Supporters SHOP LINK: disvault1.mypaylix.gg/ For PayPal payments, please open a ticket. If you experience any problems with cryptocurrency payments, please open a ticket as well.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..