Git을 본격적으로 사용한지 이제 일년이 되간다. 사실 본격적이라고 말하기가 조금 모자라긴하다. 고객을 상대하는 정규 프로젝트에는 아직 적용을 해본적이 없기 때문이다. 주로 개인프로젝트와 책에 사용하는 예제 등을 관리하는 용도로 주로 사용하고 있다. 그래도 작업량이 많고 빈번하게 변경이 되는 프로젝트 들이라 Git의 재미를 느끼기에는 충분하다.

기존에 SVN으로 관리해오던 프로젝트들을 로컬에서는 Git으로 사용하고 중앙 리포지토리에는 SVN을 이용해서 사용하는 짬뽕식의 방법을 쓰는 것도 유용해 보인다. 일부 JBoss나 Apache의 프로젝트를 받아보면, 리포지토리는 SVN으로 되어있지만 개발자들의 로컬머신에서는 Git을 쓰고 있는 흔적들이 보인다. .gitignore 파일이 보이면 뻔하지.

Git을 비슷한 DSCM인 Mercurial보다 더 낫다고 생각하는 개발자들이 자주 제시하는 근거는 바로 기존 또는 강제된 SVN환경에 별 문제없이 바로 적용시킬 수 있는 git-svn기능이다. 어짜피 Git은 중앙 리포지토리의 존재 조차도 필요없으니, 백업이나 CI용으로 사용할 때 Git server를 사용하건, SVN을 사용하건 별 차이는 없을지도 모르겠다.

그럼에도 Git의 본격적인 사용을 불편하게 하는 것은 자바 개발자로서 아직 편리한 사용할만한 IDE환경에 결합된 툴이 없기 때문이다. 초기에 Git을 지원하는 이클립스 플러그인을 써봤을 때는 크게 실망이었다. 설치하자마자 쏟아져 나오는 각종 오류들에 놀랐고, 제대로 개발이 진행되고 있는지 아닌지도 모를 프로젝트의 상태도 마찬가지였다. Subclipse가 거의 유일한 SVN 플러그인이던 시절 SVN을 접고 다시 CVS로 갈까하는 충동이 자주 있었던 것 못지 않게, Git을 당장 쓰기는 좀 무리라고 생각하게 만든 것이 바로 편리한 툴의 부재이다.

물론 Git의 Linux의 커널개발에 적합한 툴로 만들어졌고, 주로 커맨드라인에서 사용하고, C로 된 라이브러리만 공식지원하기 때문에 자바IDE에 빠르게 완성도 높은 플러그인이 만들어질 것을 기대하기는 무리이다. 게다가 사용방법이 유사한 CVS,SVN과는 달리 로컬 리포지토리와 브랜치, Pull, Push의 개념이 기본적인 이클립스 Team기능의 기본적인 틀과도 다르다는 점도 쉽게 툴을 기대하지 못하게 하는 한가지 이유이다.

그동안은 어쩔 수 없이 이클립스에서 작업은 하고, 커맨드 라인에서 git 명령을 직접 입력해서 작업을 해야 했다. 마치 초창기에 Maven을 쓰때 같은데, 문제는 Maven 초기 eclipse플러그인과 같이 어설프게 나마 eclipse로 설정을 만들어주는 기능도 없으니, IDE에서 파일의 변경상태를 파악하고 빠르게 commit 등을 할 수 없다는 것은 파일의 규모가 커지고, 작업량이 늘어나면 답답한 일이 아닐 수 없었다.

그러던 중에 최근에 Aptana를 사용하면서 Git이 기본 SCM에 포함된 것을 보고, 이클립스에 다시 Git플러그인을 설치해봤다. JGit이라는 자바로 만든 Git의 구현체와 플러그인이 결합한 것이다. 며칠 사용한 결과 매우 안정적이고(적어도 알 수 없는 예외가 마구 떨어지지는 않았으니…), 그럭저럭 편리하게 쓸만하다는 결론을 내렸다. Git의 모든 기능(command만 수백가지니)을 다 사용할 수는 없지만, pull/push등을 자유롭게 할 수 있고, branch의 생성이나 전환도 자유롭다. 아직 merge를 직접 하는 방법은 찾지를 못했지만, 그 정도는 커맨드 라인에서 작업하는 것도 문제는 아닐 것이다.

 

어쨌든 JGit에 대한 만족도가 높아서 이제 본격적인 실무 프로젝트에 적용을 해보려고 결심을 했다. 나처럼 이런 저런 기술적인 시도를 좋아하는 사람에게는 편리한 로컬 branch 기능과 강력한 merge기능이 필수다.

 

참, 얘기가 샜는데, 그래서 Git에 대한 자료를 좀 더 모으다가 Subversion에 익숙한 개발자를 위해서 Subversion과 비교해서 Git의 기능를 설명한 좋은 글을 하나 발견했다. 1:1로 다 대응될 수는 없겠지만 그래도 기본적인 개념을 빠르게 이해하는데는 도움이 되리라 생각된다.

Related posts:

  1. 구글코드의 Mercurial 지원
  2. 이클립스 Git 플러그인 JGIT/EGIT 사용주의
  3. 유쾌한 이슈처리 재촉 메일

Facebook comments:

to “Subversion 사용자를 위한 Git 소개”

  1. 좋은 글 잘 읽었습니다.

    “주로 개인프로젝트와 책에 사용하는 예제 등을 관리하는 용도로 주로 사용하고 있다.” 라는 부분에서 제가 지금 필요한 것이라고 느꼈습니다.

    subversion을 생각을 하고 있어서 subversion에 대해서 찾다가 Git도 알게 되었고 Mercurial도 알게 되었습니다.
    저도 토비님의 위 글 처럼 사용을 하고 싶은데 어떤 것이 좀 더 효율적일지 조언 좀 부탁드립니다.

    일단 갖고 있는 환경은 노트북 한대에 2개의 외장하드가 있는데 어떻게 구성을 하면 좋을까요?..

  2. 아리수/ 개인용도라면 Git이나 Mercurial을 사용하시면 좋을 것입니다. 서버에 백업하는 것은 github.com 같은데 무료계정을 받아 쓰시면 되고요.
    로컬에서 쓸 때는 서버를 따로 설치할 필요는 없습니다. Git이나 Mercurial을 깔려있으면 되는 것이고요.
    처음 쓰신다면 Mercurial이 쉽고 편리합니다. Git은.. 140개의 명령이 있고, 각 명령당 또 수많은 옵션의 조합이 필요하죠. 익숙해지려면 3-6개월을 꾸준히 공부하면서 자꾸 연습하고, 써봐야 할 것입니다. Mercurial은 학습하기가 부담이 좀 적고, 윈도에서도 잘 돌아간다는 장점이 있지요.
    다만 두가지다 이클립스 플러그인은 불안정하므로 별로 권장하지 않습니다. 도스창에서 명령으로 사용하시는 것이 좋습니다.

  3. [...] 좀 뜬금없지만 ㅎㅎ 말그대로 Git 이 뭔가 싶어서 찾아보다 토비님의 댓글을 보곤 Mercurial을 검색해 아래 포스트를 찾았다 분산버전관리 머큐리얼로 [...]

  4. [...] 좀 뜬금없지만 ㅎㅎ 말그대로 Git 이 뭔가 싶어서 찾아보다 토비님의 댓글을 보곤 Mercurial을 검색해 아래 포스트를 찾았다 분산버전관리 머큐리얼로 [...]

  5. Ahaa, its fastidious discussion regarding this article at
    this place at this webpage, I have read all that, so at
    this time me also commenting at this place.

  6. mbt changa shoes Subversion 사용자를 위한 Git 소개 » Toby’s Epril

  7. mbt exercise shoes Subversion 사용자를 위한 Git 소개 » Toby’s Epril

  8. viagra generico
    Think about how big the furnishings you are likely to utilization in any interior decorating. You may not would like to choose a nine foot a number of post mattress for any room which is only 100 square feet. If you need to choose more compact, select more compact, for that greater areas, opt for larger sections.
    levitra générique
    Find a help class. Suffering from joint disease will make you think that an undetectable and unhappy victim, even if you are certainly not. Joining a assist selection of other people who have a similar problem can assist you feel happier about it, and also provide you with a method to reveal ideas for dealing.
    viagra original
    Be careful about making your child enjoy online online games, especially games with stay sound. There may be horrible terminology over these routes, in addition to a great deal of bullying habits. There can even be youngster potential predators over these chitchat bedrooms. Know what your child has been doing and check these conversation periods for their safety.
    dapoxetine 60mg kaufen

  9. I simply want to say I am just very new to blogging and site-building and truly savored your web site. Very likely I’m likely to bookmark your site . You amazingly come with excellent articles. Kudos for sharing your website.

  10. Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! By the way, how can we communicate?

  11. I have observed that costs for internet degree pros tend to be a great value. Like a full College Degree in Communication in the University of Phoenix Online consists of Sixty credits with $515/credit or $30,900. Also American Intercontinental University Online provides a Bachelors of Business Administration with a full program feature of 180 units and a worth of $30,560. Online studying has made getting your certification far more easy because you might earn your degree through the comfort of your dwelling place and when you finish from work. Thanks for all tips I have learned from your web-site.

  12. Hello my loved one! I wish to say that this post is amazing, great written and come with approximately all important infos. I would like to see more posts like this .

  13. I’m often to running a blog and i actually appreciate your content. The article has really peaks my interest. I am going to bookmark your web site and keep checking for new information.

  14. Attractive section of content. I just stumbled upon your weblog and in accession capital to assert that I acquire actually enjoyed account your blog posts. Any way I’ll be subscribing to your augment and even I achievement you access consistently rapidly.

  15. Good ¡V I should definitely pronounce, impressed with your site. I had no trouble navigating through all tabs and related information ended up being truly simple to do to access. I recently found what I hoped for before you know it in the least. Quite unusual. Is likely to appreciate it for those who add forums or something, website theme . a tones way for your customer to communicate. Excellent task..

  16. viagra hinta
    Stay calm. Ringing in the ears is just rarely a manifestation of a serious mind issue or listening to difficulty. You don’t have to stress about abruptly experiencing created a head tumor or puncturing an eardrum. Typically, ringing in ears is actually a situation all on its own, without having primary health care outline that can lead to other problems.
    viagra online
    Yoga exercises is a gentle kind of workout which has a further benefit from building a peaceful, meditative attitude. When you have issues with anxiousness and look for that meditation is too challenging, try out yoga exercises alternatively. You are going to acquire several of the identical psychological advantages of meditation together with the additional benefit of extending and exercise.
    dapoxetin schweiz
    Decide on bridesmaids that can be associates to the children within the wedding ceremony. Allow them to have a proper care deal with healthier pleasures, normal water, guides, pieces of paper and crayons. This all can be used as a diversion when traveling between places, or when waiting for images being used. This will keep the youngsters entertained, when nonetheless getting them available.
    kamagra gel

  17. kamagra österreich
    A vital idea for protect against yeast infections is to remove your self from front side to back soon after you use the toilet. The reason for this really is straightforward. Cleaning from top to rear inhibits you from spreading germs throughout the rear end to the vagina. This straightforward suggestion can help reduce the probability of getting a candidiasis.
    kamagra kopen
    For those who have been trying to cease your snoring for some time without the good results, you might want to look at looking for specialist help. Try out browsing your physician and explain that you can’t quit snoring and the both of you can get a treatment plan collectively to aid cure your frustrating habit.
    levitra générique
    If you use Safari on your iphone 4, it is somewhat simple to help make your computer keyboard greater. Just before tapping in the street address club, just turn your iphone 4 horizontally. This automatically tends to make Safari go into side to side function, which is the reason why the key-board a lot larger sized. To revert straight back to a typical key pad, convert the telephone returning to typical.
    kamagra jelly

  18. naturally like your website however you need to check the spelling on quite a few of your posts. Many of them are rife with spelling problems and I find it very bothersome to inform the truth on the other hand I’ll certainly come again again.

  19. I like what you guys are up also. Such intelligent work and reporting! Carry on the superb works guys I have incorporated you guys to my blogroll. I think it will improve the value of my site :)

  20. Hey I am so grateful I found your webpage, I really found you by accident, while I was looking on Askjeeve for something else, Anyhow I am here now and would just like to say cheers for a remarkable post and a all round entertaining blog (I also love the theme/design), I don’t have time to go through it all at the moment but I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the fantastic job.

  21. cialis generico
    Be mindful of your personal inexperience in negotiating the very last revenue price of your property. Your ignorance could significantly decrease your profit border. You ought to work with a agent to perform negotiations on terms for your benefit. They can be proficient in the bid procedure and are greater capable of meeting your economic desired goals.
    viagra hinta
    As we discussed, you no longer have to live a life plagued by allergic reactions. There are numerous choices at your disposal, when allergy symptoms are bringing you down. Attempt some, or every one of the ideas provided in the following paragraphs and you can stay a life without any allergic reaction along with their frustrating signs and symptoms.What You Should Ensure You Know About Ageing
    kamagra geneve
    You must make sure that you make your video camera free of moisture all the time, but don’t avoid possibilities to get pictures from the rainwater. There is no frame of mind that can match the one a stormy day or night can produce. This may result in some very interesting images for your personal audiences.
    kamagra belgie

  22. viagra belgie
    As opposed to performing your grocery shopping on the very same day for each few days, consider store shopping one particular working day later on weekly. If you shop utilizing the same list, you will get stored several week’s worth of your purchasing funds once you have recurring this process for several weeks.
    priligy nederland
    Constantly pay attention to your bills. One never knows where one can save cash. By way of example, make time to take a look at insurance coverage charges with the supplier. Perhaps you may not drive as many a long way each year which it says and you also could reduce your car insurance plan monthly bill.
    dapoxetine nederland
    Regardless of whether you like to shop in stores or strictly online, you do have a field of eye-catching items accessible to you. Wedding party rings, pendant necklaces, and tennis games bracelets, are merely a number of the great kinds of jewelry that you can select from. This data can certainly make buying precious jewelry a snap.The Most Beneficial Hair Thinning Guidance Accessible
    Kamagra Portugal

  23. Generally I don’t learn post on blogs, however I would like to say that this write-up very pressured me to take a look at and do so! Your writing style has been surprised me. Thank you, very great post.

  24. Thanks for the sensible critique. Me & my neighbor were just preparing to do some research on this. We got a grab a book from our area library but I think I learned more from this post. I’m very glad to see such magnificent info being shared freely out there.

  25. This is the precise weblog for anybody who needs to seek out out about this topic. You understand a lot its nearly exhausting to argue with you (not that I truly would want…HaHa). You positively put a brand new spin on a topic thats been written about for years. Great stuff, just nice!

  26. Wow, wonderful weblog structure! How lengthy have you been blogging for? you make blogging glance easy. The entire look of your site is great, as well as the content!

  27. We are a group of volunteers and starting a new scheme in our community. Your site offered us with valuable info to work on. You have done a formidable job and our whole community will be grateful to you.

  28. There is perceptibly a bunch to realize about this. I suppose you made certain good points in features also.

  29. Great tremendous things here. I am very glad to peer your article. Thanks a lot and i’m having a look forward to touch you. Will you please drop me a mail?

  30. Hi, I just found your weblog via google. Your viewpoint is truly pertinent to my life at this moment, and I’m really happy I found your website.

  31. Hi! I know this is kinda off topic nevertheless I’d figured I’d ask. Would you be interested in trading links or maybe guest writing a blog post or vice-versa? My blog covers a lot of the same subjects as yours and I think we could greatly benefit from each other. If you might be interested feel free to send me an email. I look forward to hearing from you! Superb blog by the way!

  32. I must show my affection for your kind-heartedness giving support to persons that really need help on your niche. Your special dedication to getting the message all around had been rather informative and has frequently empowered women like me to achieve their endeavors. Your entire useful advice signifies a great deal a person like me and much more to my mates. Warm regards; from everyone of us.

  33. Hi there! I simply want to offer you a huge thumbs up for the great info you have got here on this post. I’ll be coming back to your website for more soon.

  34. I like this web site very much, Its a real nice billet to read and get information. “Do not use a cannon to kill a mosquito.” by Confucius.

  35. Hey there. I discovered your website by way of Google while looking for a related topic, your web site came up. It looks good. I’ve bookmarked it in my google bookmarks to come back then.

  36. The very next time I read a blog, I hope that it won’t disappoint me just as much as this particular one. After all, Yes, it was my choice to read, nonetheless I really thought you would have something helpful to say. All I hear is a bunch of whining about something that you could fix if you weren’t too busy searching for attention.

  37. Hey there. I discovered your site by means of Google at the same time as looking for a similar matter, your website came up. It appears to be good. I’ve bookmarked it in my google bookmarks to come back then.

  38. Awesome post. I’m a regular visitor of your blog and appreciate you taking the time to maintain the nice site. I will be a frequent visitor for a long time.

  39. Awesome write-up. I am a regular visitor of your blog and appreciate you taking the time to maintain the excellent site. I’ll be a frequent visitor for a long time.

  40. Awesome write-up. I am a normal visitor of your website and appreciate you taking the time to maintain the excellent site. I’ll be a regular visitor for a really long time.

  41. Hiya, I’m really glad I have found this info. Today bloggers publish just about gossip and net stuff and this is really annoying. A good site with interesting content, this is what I need. Thanks for making this site, and I will be visiting again. Do you do newsletters by email?

  42. Awesome write-up. I’m a regular visitor of your website and appreciate you taking the time to maintain the excellent site. I’ll be a frequent visitor for a long time.

  43. Awesome write-up. I’m a normal visitor of your website and appreciate you taking the time to maintain the nice site. I will be a frequent visitor for a long time.

  44. Hi there. I discovered your website by the use of Google while searching for a similar matter, your site came up. It seems to be good. I have bookmarked it in my google bookmarks to come back then.

  45. Hey there. I found your web site by way of Google even as looking for a comparable matter, your site got here up. It appears to be great. I’ve bookmarked it in my google bookmarks to visit then.

  46. Awesome write-up. I am a normal visitor of your blog and appreciate you taking the time to maintain the nice site. I’ll be a frequent visitor for a long time.

  47. Awesome post. I am a normal visitor of your site and appreciate you taking the time to maintain the excellent site. I’ll be a regular visitor for a long time.

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2017 Toby's Epril Suffusion theme by Sayontan Sinha