Using Git Hub for love2d projects

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
sanjiv
Citizen
Posts: 88
Joined: Mon Feb 27, 2012 5:11 am

Using Git Hub for love2d projects

Post by sanjiv »

Basically, I don't know how to use GitHub, and I'm not even sure about what I don't know. I thought I could use it as a sort of drop box for a love2d game folder, but apparently I have to jump through some more hoops to add nested folders to a repository. Should I just stick with Drop Box or one-drive for working on love2d folders across multiple machines, or is there some simple GitHub knowledge that will open it up for me?
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Using Git Hub for love2d projects

Post by s-ol »

sanjiv wrote:Basically, I don't know how to use GitHub, and I'm not even sure about what I don't know. I thought I could use it as a sort of drop box for a love2d game folder, but apparently I have to jump through some more hoops to add nested folders to a repository. Should I just stick with Drop Box or one-drive for working on love2d folders across multiple machines, or is there some simple GitHub knowledge that will open it up for me?
If you want to use github, you need to learn Git. I strongly recommend it because versioning your code is very useful, but you should realize that git and github are a VCS and a platform for it and very different from a storage service like Dropbox.

https://en.wikipedia.org/wiki/Git_(software)
https://encrypted.google.com/search?q=learn%20git

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
User avatar
mr_happy
Citizen
Posts: 84
Joined: Fri Mar 18, 2016 8:57 pm

Re: Using Git Hub for love2d projects

Post by mr_happy »

sanjiv wrote:Basically, I don't know how to use GitHub, and I'm not even sure about what I don't know.
I find github very confusing, despite having been an irregular user for years. I used Tortoise for svn some years ago and that was a bit easier to understand imho but like anything I suppose if you use it often you just get used to it. Anyway, I found this guide very useful, maybe you will too:

http://readwrite.com/2013/10/02/github- ... rs-part-2/

(check part one for a total noob introduction).

Good luck!
marco.lizza
Citizen
Posts: 52
Joined: Wed Dec 23, 2015 4:03 pm

Re: Using Git Hub for love2d projects

Post by marco.lizza »

s-ol wrote: If you want to use github, you need to learn Git. I strongly recommend it because versioning your code is very useful, but you should realize that git and github are a VCS and a platform for it and very different from a storage service like Dropbox.
Totally agree. I've been using SCMs and VCS since the late nineties and a programmer should not work without using them, nowadays.

I fear that sanjiv should start by learning WHY those software commodities are used and the benefits. They are not just a storage and sharing platforms.
User avatar
zorg
Party member
Posts: 3468
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Using Git Hub for love2d projects

Post by zorg »

All versioning software for code have the benefit of, if you're willing to keep to a certain coding pattern, keeping track of what you modified, and if something is monumentally borked, you can always diff back to a previous "time" when your project still worked. This is oversimplifying things by a great margin, but i'm probably not wrong. :3

That said, i know i myself can't really get in that needed mindset of "code - commit - repeat" since i suck at compartmentalizing my time.

Bottom line, git(hub)/svn/mercurial/etc... is good if you can develop in certain ways, or - imo this is the more important bit - , want your project to be opensource; makes sharing the codebase easier, for a number of purposes.
Last edited by zorg on Thu Jun 16, 2016 8:32 pm, edited 1 time in total.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Using Git Hub for love2d projects

Post by s-ol »

Oh, I forgot to mention: this is the best git guide I know personally: https://www.youtube.com/watch?v=1ffBJ4sVUb4

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
Trebgarta
Prole
Posts: 33
Joined: Mon May 23, 2016 5:21 pm

Re: Using Git Hub for love2d projects

Post by Trebgarta »

git guide of bitbucke(atlassian) is wonderful, simple yet on the spot. Try git website is also beatiful.
User avatar
4aiman
Party member
Posts: 262
Joined: Sat Jan 16, 2016 10:30 am

Re: Using Git Hub for love2d projects

Post by 4aiman »

Long story short:
Git requires a certain habits to be formed.
I'd recommend *not* to destroy those with projects that are not intended to be open-source.
Find some open-source project you want to contribute to and see whether you'll be comfortable with git .


Some TL;DR
I'm using git for over 3 years now and can confirm that what zorg said is true.
Code-commit-repeat style is something that is good for an open-source project with a bunch of collaborators.
Sometimes even 2 of those will be sufficient to notice the difference.

Working with others may help you to tune to and accommodate yourself to the "one commit-one feature tinkered with".
However, when you work on a project *alone* there's no need to keep to that rule. And your mind will be aware of the fact.

Basically, if you work alone, you don't need any of git features but the ability to go back in time to see your changes.

So the real question is not whether to use git or not, but rather *how to backup your work at important stages of development?*.
A quick synchronization with DropBox-like services would be what you need exactly.
Besides, git may not be as friendly as you may hope it would, if you have left any files not committed on one of the machines.

Imagine a situation where you've noticed a tiny bug in one of the files you have been working with while adding a new feature.
A bug is completely irrelevant to a feature you're working on at the moment, however.
It would be *right* to remember of that bug and release a fix for that bug in a separate commit if there are other contributors.
But do *you* need that in yours (and yours only) project?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests