<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/html"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>git-flow cheatsheet</title> <link href='https://fonts.googleapis.com/css?family=Sansita+One' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen,print"> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen,print"> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-33766650-1']); _gaq.push(['_trackPageview']); (function () { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </head> <body> <div id="banner"> <a href="https://github.com/danielkummer/git-flow-cheatsheet">Fork me on GitHub</a> </div> <header> <h1 id="title">git-flow cheatsheet</h1> <p id="author"> created by <a href="http://twitter.com/0r1g4m14dd1c7">Daniel Kummer</a> <a href="https://twitter.com/share" class="twitter-share-button" data-via="0r1g4m14dd1c7" data-size="large">Tweet</a> <script>!function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = "//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } }(document, "script", "twitter-wjs");</script> </p> <p id="desc">efficient branching using git-flow by <a href="http://nvie.com/">Vincent Driessen</a></p> <p id="translations">translations: <a href="index.html" title="english">English</a> - <a href="index.es_ES.html" title="spanish">Castellano</a> - <a href="index.pt_BR.html" title="Brazilian Portugues">Brazilian Portugues</a> - <a href="index.zh_TW.html" title="Traditional Chinese">繁體中文(Traditional Chinese)</a> - <a href="index.zh_CN.html" title="Simplified Chinese">简体中文(Simplified Chinese)</a> - <a href="index.ja_JP.html" title="日本語">日本語</a> - <a href="index.tr_TR.html" title="Turkce">Türkçe</a> - <a href="#" class="active" title="한국어">한국어(Korean)</a> - <a href="index.fr_FR.html" title="Français">Français</a> - <a href="index.it_IT.html" title="Italiano">Italiano</a> - <a href="index.nl_NL.html" title="Nederlands">Nederlands</a> - <a href="index.ru_RU.html" title="Russian">Русский (Russian)</a> - <a href="index.de_DE.html" title="German">Deutsch (German)</a> - <a href="index.ca_CA.html" title="Català">Català (Catalan)</a> - <a href="index.ro_RO.html" title="Romanian">Română (Romanian)</a> - <a href="index.el_GR.html" title="Ελληνικά (Greek)">Ελληνικά (Greek)</a> - <a href="index.uk_UA.html" title="Ukrainian">Українська (Ukrainian)</a> - <a href="index.vi_VN.html" title="Tiếng Việt">Tiếng Việt (Vietnamese)</a> - <a href="index.pl_PL.html" title="Polish">Polski</a> - <a href="index.ar_MA.html" title="العربية">العربية</a> - <a href="index.fa_FA.html" title="فارسی">فارسی</a> - <a href="index.az_AZ.html" title="Polish">Azərbaycanca (Azerbaijani)</a> <a href="index.id_ID.html" title="Bahasa Indonesia">Bahasa Indonesia</a> </p> </header> <div id="main"> <div class="scrollblock"> <h2>About</h2> <p> git-flow는 Vincent Driessen의 브랜칭 모델을 위한 고수준 저장소 작업을 제공하는 git의 확장입니다. <small><a href="http://nvie.com/posts/a-successful-git-branching-model/">more</a></small> </p> <p class="divider">★ ★ ★</p> <p>이 치트 시트는 기본적인 사용법과 git-flow 작업의 효과를 보여줍니다.</p> <p class="divider">★ ★ ★</p> </div> <div class="scrollblock"> <h2>Basic tips</h2> <ul> <li>Git flow는 훌륭한 명령행 도움말과 출력을 제공합니다. 무슨 일이 일어나는지를 알려면 출력을 주의깊게 읽어주세요.</li> <li>macOS/Window Client <a href="http://www.sourcetreeapp.com/">Sourcetree</a>는 훌륭한 git gui를 제공하고 git-flow에 대한 지원을 제공합니다.</li> <li>Git-flow는 병합(merge) 기반의 솔루션입니다. feature 브랜치를 리베이스(rebase)하지 않습니다.</li> </ul> <p class="divider">★ ★ ★</p> </div> <div class="scrollblock"> <h2><a name="setup" href="#setup">Setup</a></h2> <ul> <li>사전에 제대로 동작하는 git이 설치되어 있어야합니다.</li> <li>Git flow는 macOS, Linux, Windows에서 동작합니다.</li> </ul> <p class="divider">★ ★ ★</p> <div class="col-1"> <h3>macOS</h3> <span>Homebrew</span> <blockquote> $ brew install git-flow-avh </blockquote> <span>Macports</span> <blockquote> $ port install git-flow-avh </blockquote> <h3>Linux</h3> <blockquote> $ apt-get install git-flow </blockquote> <h3>Windows (Cygwin)</h3> <blockquote> $ wget -q -O - --no-check-certificate https://raw.github.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh install stable | bash </blockquote> <p>git-flow의 설치를 위해서는 wget과 util-linux가 필요합니다.</p> </div> <div class="col-2"> <p> 상세한 git flow의 설치 방법은 <a href="https://github.com/petervanderdoes/gitflow-avh/wiki/Installation">git flow wiki</a>를 참고하세요. </p> <img src="img/download.png" alt="install git-flow"/> </div> </div> <div class="scrollblock"> <h2><a name="getting_started" href="#getting_started">Getting started</a></h2> <p>Git flow는 프로젝트 설정을 변경하기 위해 초기화를 필요로 합니다.</p> <p class="divider">★ ★ ★</p> <div class="col-1"> <h3>초기화</h3> <p>기존 git 저장소 내에서 초기화하는 것으로 git-flow의 사용을 시작합니다.</p> <blockquote> git flow init </blockquote> <p> 몇몇 질문에 대답해서 브랜치의 명명규칙을 정합니다. 기본 값을 사용하기를 권장합니다. </p> </div> <div class="col-2"> <div class="initialize"></div> <div class="lines-small"></div> <div class="lines-open"></div> <div class="lines-big"></div> </div> </div> <div class="scrollblock"> <h2><a name="features" href="#features">Features</a></h2> <ul class="narrow"> <li>다가오는 배포(release)를 위한 새 기능(feature)을 개발합니다.</li> <li>일반적으로 개발자의 저장소에만 존재합니다.</li> </ul> <p class="divider">★ ★ ★</p> <div class="col-1"> <h3>새 기능(feature) 시작하기</h3> <p>새 기능의 개발은 'develop' 브랜치에서 시작합니다.</p> <p>다음과 같이 새 기능의 개발을 시작합니다.</p> <blockquote> git flow feature start MYFEATURE </blockquote> <p>이것은 'develop'에 기반한 새 기능(feature) 브랜치를 생성하고 그 브랜치로 전환합니다.</p> <!-- - Bump the version number now! - Start committing last-minute fixes in preparing your release - When done, run: git flow release finish 'testrelease' --> </div> <div class="col-2"> <div class="feature-start"></div> </div> </div> <div class="scrollblock"> <div class="col-1"> <h3>기능 완료</h3> <p> 기능 개발을 완료합니다. 이것은 다음 작업들을 수행합니다. </p> <ul> <li>MYFEATURE 브랜치를 'develop'에 병합(merge)합니다.</li> <li>기능 브랜치를 삭제합니다.</li> <li>'develop' 브랜치로 전환합니다.</li> </ul> <blockquote> git flow feature finish MYFEATURE </blockquote> </div> <div class="col-2"> <div class="feature-end"></div> </div> </div> <div class="scrollblock"> <div class="col-1"> <h3>기능을 게시(publish)</h3> <p> 기능을 공동으로 개발하고 있나요? <br/> 기능을 원격 서버에 게시하여 다른 사용자들도 사용할 수 있게 합니다. </p> <blockquote> git flow feature publish MYFEATURE </blockquote> </div> <div class="col-2"> <div class="feature-publish"></div> </div> </div> <div class="scrollblock"> <div class="col-1"> <h3>게시된 기능 가져오기</h3> <p>다른 사용자가 게시한 기능을 가져옵니다.</p> <blockquote> git flow feature pull origin MYFEATURE </blockquote> </div> <div class="col-2"> <div class="feature-pull"></div> </div> </div> <div class="scrollblock"> <h2><a name="release" href="#release">Make a release</a></h2> <ul> <li>새로운 제품 출시 준비를 지원합니다.</li> <li>출시를 위한 사소한 버그 수정이나, 메타 데이터 준비를 허용합니다.</li> </ul> <p class="divider">★ ★ ★</p> <div class="col-1"> <h3>릴리스 시작</h3> <p>릴리스를 시작하려면 git flow의 release 명령을 사용합니다.</p> <p>'develop' 브랜치로부터 'release' 브랜치를 생성합니다.</p> <blockquote> git flow release start RELEASE [BASE] </blockquote> <p>릴리스를 시작할 <code>[BASE]</code> commit sha-1 해시를 선택적으로 줄 수도 있습니다. 그 commit은 반드시 'develop' 브랜치에 있어야합니다.</p> <p class="divider">★ ★ ★</p> <p>릴리스 브랜치를 생성한 후에는 다른 개발자들의 릴리스 commit을 허용하기위해 게시(publish)하는 것이 현명합니다. 기능 게시와 비슷한 방법으로합니다.</p> <blockquote> git flow release publish RELEASE </blockquote> <p>(원격 'release' 브랜치의 변경 추적은 다음과 같이 합니다<br/><code>git flow release track RELEASE</code> )</p> </div> <div class="col-2"> <div class="release-start"></div> </div> </div> <div class="scrollblock"> <div class="col-1"> <h3>릴리스 완료</h3> <p>릴리스 완료는 git 브랜치하기에서 가장 큰 단계입니다. 몇몇 작업을 수행합니다.</p> <ul> <li>'release' 브랜치를 'master' 브랜치에 병합(merge)</li> <li>릴리스를 릴리스 이름으로 태그(tag)</li> <li>릴리스를 'develop' 브랜치로 재병합(back-merge)</li> <li>'release' 브랜치 삭제</li> </ul> <blockquote> git flow release finish RELEASE </blockquote> <p><code>git push --tags</code>를 사용해 태그들을 push하는 것을 잊지마세요.</p> </div> <div class="col-2"> <div class="release-end"></div> </div> </div> <div class="scrollblock"> <h2><a name="hotfixes" href="#hotfixes">Hotfixes</a></h2> <ul> <li>핫픽스는 현재 출시된 제품에 문제가 생겨서 즉각 대응해야하는 상황에서 필요합니다.</li> <li>'master' 브랜치의 현재 출시된 버전으로 표기(mark)된 태그(tag)로부터 브랜치를 땁니다.</li> </ul> <p class="divider">★ ★ ★</p> <div class="col-1"> <h3>핫픽스 시작</h3> <p>여타 git flow 명령과 비슷한 방법으로 시작합니다.</p> <blockquote> git flow hotfix start VERSION [BASENAME] </blockquote> <p>여기서 버전 인수는 핫픽스 릴리스 이름을 지정합니다.</p> <p>선택적으로 basename으로 시작점을 지정할 수도 있습니다.</p> </div> <div class="col-2"> <div class="hotfix-start"></div> </div> </div> <div class="scrollblock"> <div class="col-1"> <h3>핫픽스 완료</h3> <p>핫픽스를 종료하면 핫픽스는 'develop' 및 'master' 브랜치로 병합(merge)됩니다.</p> <p>추가적으로 'master'의 병합 부분은 핫픽스 버전으로 태그됩니다.</p> <blockquote> git flow hotfix finish VERSION </blockquote> </div> <div class="col-2"> <div class="hotfix-end"></div> </div> </div> <div> <div class="col-1"></div> <div class="col-2"> <div class="lines-close"></div> <div class="lines-small-end"></div> </div> </div> <div class="scrollblock"> <h2><a name="commands" href="#commands">Commands</a></h2> <img src="img/git-flow-commands.png" alt="git-flow commands"/> </div> <div class="scrollblock"> <h2>Backlog</h2> <p class="divider">★ ★ ★</p> <ul> <li>여기서는 모든 명령을 다루지 않았습니다. 중요한 것들만 설명했습니다.</li> <li>git 명령도 사용할 수 있습니다. git flow는 단지 도구 모음일 뿐입니다.</li> <li>'support' 기능은 아직 베타 버전입니다. 사용은 권장되지 않습니다.</li> <li>번역해주신다면 저는 행복하게 통합할 것입니다.</li> </ul> <p class="divider">★ ★ ★</p> </div> </div> <footer> <div class="scrollblock"> <h2><a name="comments" href="#comments">Comments</a></h2> <div id="disqus_thread"></div> </div> </footer> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_shortname = 'gitflowcheatsheet'; // required: replace example with your forum shortname /* * * DON'T EDIT BELOW THIS LINE * * */ (function () { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a> </noscript> <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> </body> </html>