Comments on Git: The Safety Net for Your Projects

22 Reader Comments

Back to the Article
  1. Great article!

    I would suggest looking into git merge—squash in order to merge one branch containing all your little commits for one specific bug-fix into one single commit on the production branch.

    As for merging feature branches, make sure the are public (remote), and use a git rebase -i master inside the feature branch to clean up the branch before merging it into the master (production) branch.

    Cheers,

    Copy & paste the code below to embed this comment.
  2. Excellent article. Very helpful intro to Git

    Copy & paste the code below to embed this comment.
  3. As a newish front-end designer working with a distributed team of more experienced developers who have used version control for a long time, I have come to love Git, and it has saved my butt more than once.  I have also heard git reset - - hard HEAD referred to (amusingly, but accurately) as “living and dying by the sword.” Fear not the command line!

    Copy & paste the code below to embed this comment.
  4. I am new to both web development and git, and found this article to be very helpful. I am never could wrap my head around the branch concept, and now I have much better understanding of it. Thank you!

    Copy & paste the code below to embed this comment.
  5. Lovely git intro. Thanks! Small typo? Here:

    $ git reset—hard 2be18d9

    Shouldn’t there be no space before “hard”? I.e.,

    $ git reset—hard 2be18d9

    Copy & paste the code below to embed this comment.
  6. Hiya,

    consider that here we’re mostly thinking about web development and possibly people who are not overly familiar with Git’s and its complex UI, may I humbly recommend Fossil (http://fossil-scm.org) for as version control system.

    Interestingly, recently there was a interesting thread (http://article.gmane.org/gmane.comp.version-control.fossil-scm.user/17811) on its mailing list in regard to losing data with Git. :-)

    Moreover, I can heartily reommend Fosill (moved all my stuff from Git) for all the developers/teams not working in the realm of projects having the size and/or organizational complexity like Linux’s kernel.

    Copy & paste the code below to embed this comment.
  7. I am a solo developer(for now) and i develop my progect locally using Netbeans.Having said the above do you think git would help in my case?

    Copy & paste the code below to embed this comment.
  8. The best thing in GIT is git bisect. It helps a lot when you try find a broken commit in the repo. It’s not as well known feature as it should be.

    Copy & paste the code below to embed this comment.
  9. @Dimitris: As I wrote above, take a look at Fossil which is much simpler to use and more secure…

    Copy & paste the code below to embed this comment.
  10. @Piotr: ‘bisect’ is not very special in Git since it’s it is present in every (D)VCS I know - starting with Darcs, Bazaar, Mercurial…Fossil.

    Copy & paste the code below to embed this comment.
  11. Gour, comments like yours actually just confuse the people this article is trying to help. There are a lot of alternatives which are all good (better than Subversion) but you can always find people with bad experiences for all of them.

    Copy & paste the code below to embed this comment.
  12. @Martin If people reading this article are going to be confused with my comments, then they will be lost with the Git. ;)

    Copy & paste the code below to embed this comment.
  13. To deep into Git, this stackoverflow post is a great resource: http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide in addition to http://www.git-tower.com/blog/workflow-of-version-control/ http://www.git-tower.com/blog/version-control-best-practices/ (blog of git-tower makers and “Learn Git” eBook writers)

    Copy & paste the code below to embed this comment.
  14. Fantastic article. I really liked the concept of using bisect to track down bugs, though I suspect this doesn’t work as well in cloud platforms like Salesforce.com where you can’t execute the local code directly. Still, that feature would have been a life saver back in the old Visual Basic and .NET days.

    Copy & paste the code below to embed this comment.
  15. Great article! This will be my standard answer to people who’s new at GIT!

    Copy & paste the code below to embed this comment.
  16. The GitHub GUI app is pretty good for common actions as well, so if your team is scared of using the command line, this is a great alternative.
    https://mac.github.com/

    Copy & paste the code below to embed this comment.
  17. Thanks for the article. I’ll be implementing git bisect into my workflow :)

    Copy & paste the code below to embed this comment.
  18. Good article about branching.
    About reset command I also recommend to read this short recommendation: https://coderwall.com/p/e8oqzg

    Copy & paste the code below to embed this comment.
  19. Good article about branching.
    About reset command I also recommend to read this short recommendation: https://coderwall.com/p/e8oqzg

    Copy & paste the code below to embed this comment.
  20. GOOD ARTICLE ON GIT..

    Copy & paste the code below to embed this comment.
  21. Great article!
    Git flow also comes handy when it comes to bigger projects:

    http://nvie.com/posts/a-successful-git-branching-model/

    Best,
    Tobias

    Copy & paste the code below to embed this comment.
  22. Sorry, commenting is closed on this article.