Really glad I'm using version control now

Discussion in 'Mac Programming' started by wrldwzrd89, Jan 20, 2013.

  1. macrumors G4

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #1
    I only wish I had discovered the wonders of VCS earlier... I just started a new project, hosted on Google Code, using Git for the source code repository. This makes my life MUCH easier. Reverting back to a older version is far easier to do now, should I ever need to do that. Also, I can easily see how my code has changed over time. I've only made 2 commits so far, one initial and one to fix a bug. I'm already liking Git, now that I have figured out how to use it. :D
     
  2. macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    I enjoy the snapshot feature built into Xcode. I don't use it often enough, though.

    Does Xcode have the same Mountain Lion version tracking features that apps like TextEdit and Pages have?
     
  3. thread starter macrumors G4

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #3
    Oddly enough, this is a Java project in Eclipse. So I couldn't tell you, as I have not messed with Xcode enough to know.
     
  4. macrumors 6502a

    Joined:
    Dec 2, 2008
    #4
    Two pieces of advice . . .

    Source control is great and can radically improve your productivity. It can also change your programming style to be more experimental and fearless. Two pieces of advice:

    1. Practice reverting your code to earlier versions - make a small change (say to a comment), commit it, then roll back to the pre-change version. Do this a few times;

    2. Once you're familiar with git, use an app that gives you a visual indication of your commit structure. Try SourceTree or Tower. Both will go into your git repository and show you a tree of what you committed and each commit's relationship to its parent and child commits.
     
  5. macrumors 68000

    Joined:
    Sep 8, 2006
    #5
    I would love to learn to use GIT. Right now when I finish a project I will copy it and zip the original project in case I need to revisit it. I have wanted to learn / use it as I improve my projects. Are there any good tutorials for getting started using it, and how to use it out there that you guys recommend?
     
  6. thread starter macrumors G4

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #6
    I am using SourceTree right now. Never reverted a commit before - thanks for the advice. I'll give that a try.
     
  7. macrumors 65816

    Joined:
    Apr 17, 2012
    Location:
    Destin, FL
    #7
    Had to chime in here. Yes!!! Source control is a huge life saver.

    I use SourceTree (GIT) for every programming need. I keep sourcetree open in a separate desktop, write code, test, swipe to sourcetree, commit with short change log, back to coding. Easy peasy.
     

Share This Page