User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Git

  1. #1
    Moderator TimTim's Avatar
    Join Date
    Aug 2013
    Posts
    1,804
    Country:

    Git

    Quote Originally Posted by Higor View Post
    GitHub
    WOO COME ON!!!!!

  2. #2
    Administrator SAM's Avatar
    Join Date
    Jan 2011
    Posts
    8,296
    Country:
    What's the purpose of github as opposed to say media fire or Dropbox?

  3. #3
    Moderator TimTim's Avatar
    Join Date
    Aug 2013
    Posts
    1,804
    Country:
    Quote Originally Posted by SAM View Post
    What's the purpose of github as opposed to say media fire or Dropbox?
    Git (not just GitHub) is designed for collaborative software development. There's all kinds of stuff like:
    - Commit (change) history
    - Branches (create a branch to work on a feature and if it's good, you can merge it instantly into the master branch (main code) when you're done; you and multiple people can of course work on multiple branches at the same time without interfering with each other and it's super easy to merge everything later)
    - Diffs and comparison (you can see exactly (line-by-line) what's changed between commits and/or branches)
    - Pull requests (other devs can implement a feature and request for it to be merged into the master branch, and from there it's typically just a single click to merge)
    - GitHub has a really nice issues API that makes it easy to reference other issues, pull requests, and users and automatically close issues when they're resolved

    There's probably some other good stuff I'm forgetting but you get the idea.

  4. #4
    Moderator TimTim's Avatar
    Join Date
    Aug 2013
    Posts
    1,804
    Country:
    A few examples for the above points:
    - Commit history: https://github.com/CacoFFF/SiegeIV-UT99/commits/master
    - Review all the changes within a specific commit: https://github.com/CacoFFF/SiegeIV-U...901b4ec6499778
    - Link to specific lines of code within a certain commit: https://github.com/CacoFFF/SiegeIV-U...ier.uc#L49-L59
    - View commit history for a single file: https://github.com/CacoFFF/SiegeIV-U...entSupplier.uc
    - View a pull request (in this particular case, it's a branch) which of course includes the commits within it: https://github.com/CacoFFF/SiegeIV-UT99/pull/1
    - I just created an issue on the repo, check it! https://github.com/CacoFFF/SiegeIV-UT99/issues/2

  5. #5
    Moderator TimTim's Avatar
    Join Date
    Aug 2013
    Posts
    1,804
    Country:
    Moved posts out of locked thread to this one.

  6. #6
    Dominating seabass's Avatar
    Join Date
    Jan 2015
    Posts
    540
    Country:
    Very relevant to my first ~2 years of using git



    I remember the first time I tried using a SCM system at my uni for extra geek points. I was using Mercurial at the time (I was told it had a more sane interface than git), and right before an assignment deadline, I accidentally something, and I couldn't figure out how to get back to my last commit.
    That's got to be like one of the top 5 worst feelings in the world. One minute, you've got everything under control and after several days of work, the project is coming together, and then with one command, everything just goes to shit.
    I was considering just delivering my .hg folder (where Mercurial stores everything) and hope that the TA that would be grading it would be familiar enough with it to recover the work. Luckily, I got some help from a friend who happened to drop by the classroom who was familiar with it, and he was able to figure out how to get everything back.

    Lesson learned: do not mess around with unfamiliar technology when doing important work.

  7. #7
    Moderator TimTim's Avatar
    Join Date
    Aug 2013
    Posts
    1,804
    Country:
    The `git log` command is your friend.

    As long as files are physically on your drive in the `.git` directory, even if you accidentally rollback (for example) or something, you can still retrieve (e.g., `git cherrypick`) "future" commits and rebase everything. There are a ton of really useful (albeit obscure) commands, but yeah I only use a few on a regular basis plus a few more for rebasing/merging others' work.

  8. #8
    Dominating Scourge's Avatar
    Join Date
    Dec 2011
    Posts
    554
    Country:
    Teach me UnrealScript and I'll fork the crap out of Siege.

  9. #9
    Whicked Sick Chamberly's Avatar
    Join Date
    Jul 2012
    Location
    Vandora Temple
    Posts
    5,488
    Country:
    Sigh. Maybe I'll go find uscript tutorials and post it all on 1 page.


    http://irc.lc/globalgamers/uscript for uscript discussion.

  10. #10
    Moderator .seVered.]['s Avatar
    Join Date
    Jun 2011
    Location
    Near a River and Under a Bridge
    Posts
    2,125
    Country:
    Quote Originally Posted by SAM View Post
    What's the purpose of github as opposed to say media fire or Dropbox?
    OMG, that is the straaaangest comparison of opposition I have seen in some time... (no offense).. but Git is the..it! (explicative parsed)

    I would post a detailed discussion of it, but it seems @TimTim has already got well into that. My favorite part of Git .. well all of it... and Version control.

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •