Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Git setup
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
cad97

Git setup

By cad97, June 14, 2014 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

cad97    9

cad97

cad97    9

  • Stone Miner
  • cad97
  • Forge Modder
  • 9
  • 61 posts
Posted June 14, 2014

What is the proper way of setting up a git repo and mirroring it to Github/Bitbucket?

 

I've done git before, but only through NetBeans' automation of the process.

  • Quote

width=800 height=136http://i1279.photobucket.com/albums/y523/textcraft/Jun%202014%20-%202/a77dd69ddfa9e622422c5e5cd7e377b14d5cdedec1b7a8e19dde68c9e22be6dfbf81219d3893f419da39a3ee5e6b4b0d3255bfef95601890afd8070929aa338b0dfc68d48355_zps0c847cf3.png[/img]

 

I have a reputation for text walls. If you ask me a question I will most likely explain it in the most wordy way possible. -0 characters left

Share this post


Link to post
Share on other sites

Jwosty    9

Jwosty

Jwosty    9

  • Creeper Killer
  • Jwosty
  • Forge Modder
  • 9
  • 128 posts
Posted June 14, 2014

Initializing a Git repo and setting up a remote branch from the command line is pretty simple:

 

$ git init
$ git add .
$ git commit -am "first commit"
$ git remote add origin https://github.com/user/repo
$ git push -u origin master

 

Now, if you're talking about a Forge project specifically, it's a bit more involved, but not too bad either. You could have a look at my repo for an example.

  • Quote

I like to make mods, just like you. Here's one worth checking out

Share this post


Link to post
Share on other sites

diesieben07    7594

diesieben07

diesieben07    7594

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7594
  • 55068 posts
Posted June 14, 2014

And in case you are looking for a Git client outside of Netbeans I can only recommend SourceTree.

  • Quote

Share this post


Link to post
Share on other sites

Jwosty    9

Jwosty

Jwosty    9

  • Creeper Killer
  • Jwosty
  • Forge Modder
  • 9
  • 128 posts
Posted June 15, 2014

Well, there _is_ the GitHub GUI for Mac/Windows/Linux, but it's pretty limited. Personally, I prefer the command line :P

  • Quote

I like to make mods, just like you. Here's one worth checking out

Share this post


Link to post
Share on other sites

Mitchellbrine    18

Mitchellbrine

Mitchellbrine    18

  • Creeper Killer
  • Mitchellbrine
  • Forge Modder
  • 18
  • 193 posts
Posted June 15, 2014

I use straight up Git. It works fine for me and it super simple.

  • Quote

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • dotifo7120
      Do stuff right after login

      By dotifo7120 · Posted 14 minutes ago

      Thank you, works fine 🤗
    • diesieben07
      Do stuff right after login

      By diesieben07 · Posted 29 minutes ago

      Yes, it is server side only. For client-side you can use ClientPlayerNetworkEvent.LoggedInEvent.
    • dotifo7120
      Do stuff right after login

      By dotifo7120 · Posted 34 minutes ago

      Is it only server-side? I tried to use in client and the event wasn't firing. 🙁
    • diesieben07
      Do stuff right after login

      By diesieben07 · Posted 1 hour ago

      PlayerLoggedInEvent
    • dotifo7120
      Do stuff right after login

      By dotifo7120 · Posted 1 hour ago

      Is there an event called when a player enters into the world (fully logged)?
  • Topics

    • dotifo7120
      4
      Do stuff right after login

      By dotifo7120
      Started 1 hour ago

    • T_Jam1
      1
      Windows installer

      By T_Jam1
      Started 2 hours ago

    • Mounty
      3
      Meine Inkompetenz kennt mal wieder keine Grenzen.(Forge 1.16.1)

      By Mounty
      Started 3 hours ago

    • Amperka_pro
      5
      Как применить нбт к предмету.

      By Amperka_pro
      Started 5 hours ago

    • MistyMarshes
      9
      [1.16.4] Get IChunk World / get current World for the overworld.

      By MistyMarshes
      Started 16 hours ago

  • Who's Online (See full list)

    • magn919
    • ChampionAsh5357
    • Bubbabluehorn
    • Maewolf04
    • LexManos
    • Squrikle
    • Oscelot27
    • diesieben07
    • dotifo7120
    • jbredwards
    • Alexalien
    • Forix
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Git setup
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community