Jump to content

Git setup


cad97

Recommended Posts

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.

Link to comment
Share on other sites

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.

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

Link to comment
Share on other sites

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

-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
Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   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.

Announcements



×
×
  • Create New...

Important Information

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