add zh_TW translation link

This commit is contained in:
tonypai 2014-12-31 12:43:51 +08:00
parent 796651ba2d
commit 787d7ff9ba

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>cheatsheet do git-flow</title> <title>git-flow cheatsheet</title>
<link href='http://fonts.googleapis.com/css?family=Sansita+One' rel='stylesheet' type='text/css'> <link href='http://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/normalize.css" type="text/css" media="screen,print">
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen,print"> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen,print">
@ -27,13 +27,13 @@
</script> </script>
</head> </head>
<body> <body>
<div id="banner"><a href="https://github.com/danielkummer/git-flow-cheatsheet">Fork no GitHub</a></div> <div id="banner"><a href="https://github.com/danielkummer/git-flow-cheatsheet">Fork me on GitHub</a></div>
<header> <header>
<h1 id="title">cheatsheet do git-flow</h1> <h1 id="title">git-flow cheatsheet</h1>
<p id="author"> <p id="author">
criado por <a href="http://twitter.com/0r1g4m14dd1c7">Daniel Kummer</a> 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> <a href="https://twitter.com/share" class="twitter-share-button" data-via="0r1g4m14dd1c7" data-size="large">Tweet</a>
<script>!function (d, s, id) { <script>!function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0]; var js, fjs = d.getElementsByTagName(s)[0];
@ -45,11 +45,12 @@
} }
}(document, "script", "twitter-wjs");</script> }(document, "script", "twitter-wjs");</script>
</p> </p>
<p id="desc">sistema de branches eficiente usando o git-flow, do <a href="http://nvie.com/">Vincent Driessen</a></p> <p id="desc">efficient branching using git-flow by <a href="http://nvie.com/">Vincent Driessen</a></p>
<p id="translations">traduções: <p id="translations">translations:
<a href="index.html" title="Inglês">English</a> - <a href="#" class="active" title="english">English</a> -
<a href="index.es_ES.html" title="spanish">Castellano</a> - <a href="index.es_ES.html" title="spanish">Castellano</a> -
<a href="#" class="active" title="Português Brasileiro">Português Brasileiro</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.zh_CN.html" title="Simplified Chinese">简体中文(Simplified Chinese)</a> -
<a href="index.ja_JP.html" title="日本語">日本語</a> - <a href="index.ja_JP.html" title="日本語">日本語</a> -
<a href="index.tr_TR.html" title="Turkce">Türkçe</a> - <a href="index.tr_TR.html" title="Turkce">Türkçe</a> -
@ -67,38 +68,38 @@
<div class="scrollblock"> <div class="scrollblock">
<h2><a name="sobre" href="#sobre" >Sobre</a></h2> <h2>About</h2>
<p> <p>
O git-flow é um conjunto de extensões para o git que provê operações de alto-nível para git-flow are a set of git extensions to provide high-level repository operations for Vincent
repositórios usando o modelo de branches do Vincent Driessen. Driessen's branching model.
<small><a href="http://nvie.com/posts/a-successful-git-branching-model/">mais</a></small> <small><a href="http://nvie.com/posts/a-successful-git-branching-model/">more</a></small>
</p> </p>
<p class="divider">&#9733; &#9733; &#9733;</p> <p class="divider">&#9733; &#9733; &#9733;</p>
<p>Este cheatsheet demonstra o uso básico e o efeito das operações do git-flow</p> <p>This cheatsheet shows the basic usage and effect of git-flow operations</p>
<p class="divider">&#9733; &#9733; &#9733;</p> <p class="divider">&#9733; &#9733; &#9733;</p>
</div> </div>
<div class="scrollblock"> <div class="scrollblock">
<h2><a name="dicas_basicas" href="#dicas_basicas" >Dicas básicas</a></h2> <h2>Basic tips</h2>
<ul> <ul>
<li>O git-flow oferece na linha de comando ajuda e saídas excelentes. Leia atentamente para ver o que está <li>Git flow provides excellent command line help and output. Read it carefully to see what's happening...</li>
acontecendo...</li> <li>The OSX/Windows Client <a href="http://www.sourcetreeapp.com/">Sourcetree</a> is an excellent git gui and provides
<li>O cliente do OSX <a href="http://www.sourcetreeapp.com/">Sourcetree</a> é um excelente gui para o git e git-flow support
tem suporte ao git-flow
</li> </li>
<li>Git-flow is a merge based solution. It doesn't rebase feature branches.</li>
</ul> </ul>
<p class="divider">&#9733; &#9733; &#9733;</p> <p class="divider">&#9733; &#9733; &#9733;</p>
</div> </div>
<div class="scrollblock"> <div class="scrollblock">
<h2><a name="instalacao" href="#instalacao" >Instalação</a></h2> <h2><a name="setup" href="#setup">Setup</a></h2>
<ul> <ul>
<li>Você precisa do git instalado como pré-requisito.</li> <li>You need a working git installation as prerequisite.</li>
<li>O git flow funciona no OSX, Linux e no Windows</li> <li>Git flow works on OSX, Linux and Windows</li>
</ul> </ul>
<p class="divider">&#9733; &#9733; &#9733;</p> <p class="divider">&#9733; &#9733; &#9733;</p>
<div class="col-1"> <div class="col-1">
@ -120,31 +121,31 @@
$ wget -q -O - --no-check-certificate $ wget -q -O - --no-check-certificate
https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | bash https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | bash
</blockquote> </blockquote>
<p>You need wget and util-linux to install git-flow.</p>
</div> </div>
<div class="col-2"> <div class="col-2">
<p> <p>
Para instruções detalhadas sobre a instalação, visite For detailed git flow intallation instructions please visit the <a href="https://github.com/nvie/gitflow/wiki/Windows">git flow
a <a href="https://github.com/nvie/gitflow/wiki/Windows">wiki wiki</a>.
do git-flow</a>.
</p> </p>
<img src="img/download.png" alt="install git-flow"/> <img src="img/download.png" alt="install git-flow"/>
</div> </div>
</div> </div>
<div class="scrollblock"> <div class="scrollblock">
<h2><a name="comecando" href="#comecando" >Começando</a></h2> <h2><a name="getting_started" href="#getting_started">Getting started</a></h2>
<p>O git-flow precisa ser inicializado para personalizar a configuração de seu projeto.</p> <p>Git flow needs to be initialized in order to customize your project setup.</p>
<p class="divider">&#9733; &#9733; &#9733;</p> <p class="divider">&#9733; &#9733; &#9733;</p>
<div class="col-1"> <div class="col-1">
<h3>Inicialização</h3> <h3>Initialize</h3>
<p>Comece o uso do git-flow fazendo sua inicialização dentro de um repositório git existente:</p> <p>Start using git-flow by initializing it inside an existing git repository:</p>
<blockquote> <blockquote>
git flow init git flow init
</blockquote> </blockquote>
<p> <p>
Você precisa responder algumas questões relativas às convenções de nomenclatura dos seus branches.<br/> You'll have to answer a few questions regarding the naming conventions for your branches.<br/>
É recomendado que sejam usados os valores padrões. It's recommended to use the default values.
</p> </p>
</div> </div>
@ -158,22 +159,33 @@
<div class="scrollblock"> <div class="scrollblock">
<h2><a name="features" href="#features" >Funcionalidades/features</a></h2> <h2><a name="features" href="#features">Features</a></h2>
<ul class="narrow"> <ul class="narrow">
<li>Desenvolva novas funcionalidades para as versões futuras</li> <li>Develop new features for upcoming releases</li>
<li>Normalmente existem apenas nos repositórios dos desenvolvedores</li> <li>Typically exist in developers repos only</li>
</ul> </ul>
<p class="divider">&#9733; &#9733; &#9733;</p> <p class="divider">&#9733; &#9733; &#9733;</p>
<div class="col-1"> <div class="col-1">
<h3>Começar uma nova funcionalidade</h3> <h3>Start a new feature</h3>
<p>O desenvolvimento de novas funcionalidades começa no branch 'develop'.</p> <p>Development of new features starting from the 'develop' branch.</p>
<p>Comece o desenvolvimento de uma nova funcionalidade com</p> <p>Start developing a new feature with</p>
<blockquote> <blockquote>
git flow feature start MYFEATURE git flow feature start MYFEATURE
</blockquote> </blockquote>
<p>Esse comando cria um novo branch da funcionalidade baseado no 'develop' e alterna para ele</p> <p>This action creates a new feature branch based on 'develop' and switches to it</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>
<div class="col-2"> <div class="col-2">
<div class="feature-start"></div> <div class="feature-start"></div>
@ -182,16 +194,16 @@
<div class="scrollblock"> <div class="scrollblock">
<div class="col-1"> <div class="col-1">
<h3>Finalizar uma funcionalidade</h3> <h3>Finish up a feature</h3>
<p> <p>
Finaliza o desenvolvimento de uma funcionalidade. Finish the development of a feature.
Esse comando faz o seguinte This action performs the following
</p> </p>
<ul> <ul>
<li>Mescla MYFEATURE no 'develop'</li> <li>Merged MYFEATURE into 'develop'</li>
<li>Remove o branch da funcionalidade</li> <li>Removes the feature branch</li>
<li>Volta para o branch 'develop'</li> <li>Switches back to 'develop' branch</li>
</ul> </ul>
<blockquote> <blockquote>
@ -205,12 +217,11 @@
<div class="scrollblock"> <div class="scrollblock">
<div class="col-1"> <div class="col-1">
<h3>Publicar uma funcionalidade</h3> <h3>Publish a feature</h3>
<p> <p>
Você está desenvolvendo uma funcionalidade colaborativamente? <br/> Are you developing a feature in collaboration? <br/>
Publique uma funcionalidade para o servidor remoto, assim ela pode ser Publish a feature to the remote server so it can be used by other users.
utilizada por outros usuários.
</p> </p>
<blockquote> <blockquote>
@ -224,16 +235,17 @@
<div class="scrollblock"> <div class="scrollblock">
<div class="col-1"> <div class="col-1">
<h3>Obter uma funcionalidade publicada</h3> <h3>Getting a published feature</h3>
<p> <p>
Obtenha uma funcionalidade publicada por outro usuário e acompanhe Get a feature published by another user.
as alterações remotas.
</p> </p>
<blockquote> <blockquote>
git flow feature pull MYFEATURE git flow feature pull origin MYFEATURE
</blockquote> </blockquote>
<p>You can track a feature on origin by using <code> git flow feature track MYFEATURE</code> </p>
</div> </div>
<div class="col-2"> <div class="col-2">
<div class="feature-pull"></div> <div class="feature-pull"></div>
@ -242,31 +254,29 @@
<div class="scrollblock"> <div class="scrollblock">
<h2><a name="release" href="#release" >Criar uma versão/release</a></h2> <h2><a name="release" href="#release">Make a release</a></h2>
<ul> <ul>
<li>Auxilia a preparação de uma nova versão de produção</li> <li>Support preparation of a new production release</li>
<li>Permite correções de bugs menores e a preparação de metadados de uma versão</li> <li>Allow for minor bug fixes and preparing meta-data for a release</li>
</ul> </ul>
<p class="divider">&#9733; &#9733; &#9733;</p> <p class="divider">&#9733; &#9733; &#9733;</p>
<div class="col-1"> <div class="col-1">
<h3>Começar uma versão</h3> <h3>Start a release</h3>
<p>Para começar uma versão, use o comando git flow release. Ele<br/> <p>To start a release, use the git flow release command. It creates a release branch created from the 'develop' branch.</p>
cria um branch da versão baseado no branch 'develop'.
</p>
<blockquote> <blockquote>
git flow release start RELEASE [BASE] git flow release start RELEASE [BASE]
</blockquote> </blockquote>
<p>Você pode opcionalmente fornecer um hash sha-1 do commit <code>[BASE]</code> de onde começar a versão. O <p>You can optionally supply a <code>[BASE]</code> commit sha-1 hash to start the release from. The commit must
commit precisa estar no branch 'develop'</p> be on the
'develop' branch.</p>
<p class="divider">&#9733; &#9733; &#9733;</p> <p class="divider">&#9733; &#9733; &#9733;</p>
<p>É sensato publicar o branch da versão depois de criá-lo, para permitir commits por outros <p>It's wise to publish the release branch after creating it to allow release commits by other developers. Do it similar to feature publishing with the command:</p>
desenvolvedores. É semelhante à publicação de uma funcionalidade com o comando:</p>
<blockquote> <blockquote>
git flow release publish RELEASE git flow release publish RELEASE
</blockquote> </blockquote>
<p>(Você pode acompanhar uma versão remota com o comando <br/><code>git flow release track RELEASE</code>)</p> <p>(You can track a remote release with the <br/><code>git flow release track RELEASE</code> command)</p>
</div> </div>
<div class="col-2"> <div class="col-2">
<div class="release-start"></div> <div class="release-start"></div>
@ -275,18 +285,20 @@
<div class="scrollblock"> <div class="scrollblock">
<div class="col-1"> <div class="col-1">
<h3>Finalizar uma versão</h3> <h3>Finish up a release</h3>
<p>A finalização de uma versão é um dos grandes passos na ramificação/branching do git. Ele executa várias ações:</p> <p>Finishing a release is one of the big steps in git branching. It performs several actions:</p>
<ul> <ul>
<li>Mescla o branch da versão no 'master'</li> <li>Merges the release branch back into 'master'</li>
<li>Etiqueta a versão com seu nome</li> <li>Tags the release with its name</li>
<li>Mescla o branch da versão de volta no 'develop'</li> <li>Back-merges the release into 'develop'</li>
<li>Remove o branch da versão</li> <li>Removes the release branch</li>
</ul> </ul>
<blockquote> <blockquote>
git flow release finish RELEASE git flow release finish RELEASE
</blockquote> </blockquote>
<p>Don't forget to push your tags with<code>git push --tags</code></p>
</div> </div>
<div class="col-2"> <div class="col-2">
<div class="release-end"></div> <div class="release-end"></div>
@ -295,21 +307,22 @@
</div> </div>
<div class="scrollblock"> <div class="scrollblock">
<h2><a name="hotfixes" href="#hotfixes" >Hotfixes</a></h2> <h2><a name="hotfixes" href="#hotfixes">Hotfixes</a></h2>
<ul> <ul>
<li>Os hotfixes surgem da necessidade de agir imediatamente sobre uma situação indesejada na versão de produção ativa</li> <li>Hotfixes arise from the necessity to act immediately upon an undesired state of a live production version
<li>Pode ser criado a partir da tag correspondente no branch master que indica a versão em produção.</li> </li>
<li>May be branched off from the corresponding tag on the master branch that marks the production version.</li>
</ul> </ul>
<p class="divider">&#9733; &#9733; &#9733;</p> <p class="divider">&#9733; &#9733; &#9733;</p>
<div class="col-1"> <div class="col-1">
<h3>git flow hotfix start</h3> <h3>git flow hotfix start</h3>
<p>Assim como os outros comandos do git flow, um hotfix inicia com</p> <p>Like the other git flow commands, a hotfix is started with</p>
<blockquote> <blockquote>
git flow hotfix start RELEASE git flow hotfix start VERSION [BASENAME]
</blockquote> </blockquote>
<p>O argumento release nesse caso marca a versão defeituosa na produção</p> <p>The version argument hereby marks the new hotfix release name. Optionally you can specify a basename to start from.</p>
</div> </div>
<div class="col-2"> <div class="col-2">
<div class="hotfix-start"></div> <div class="hotfix-start"></div>
@ -318,11 +331,11 @@
<div class="scrollblock"> <div class="scrollblock">
<div class="col-1"> <div class="col-1">
<h3>Finalizar um hotfix</h3> <h3>Finish a hotfix</h3>
<p>Ao finalizar um hotfix ele é mesclado tanto no develop quanto no master. Além disso, o merge no master é etiquetado.</p> <p>By finishing a hotfix it gets merged back into develop and master. Additionally the master merge is tagged with the hotfix version.</p>
<blockquote> <blockquote>
git flow hotfix finish RELEASE git flow hotfix finish VERSION
</blockquote> </blockquote>
</div> </div>
<div class="col-2"> <div class="col-2">
@ -340,7 +353,7 @@
<div class="scrollblock"> <div class="scrollblock">
<h2><a name="comandos" href="#comandos" >Comandos</a></h2> <h2><a name="commands" href="#commands">Commands</a></h2>
<img src="img/git-flow-commands.png" alt="git-flow commands"/> <img src="img/git-flow-commands.png" alt="git-flow commands"/>
</div> </div>
@ -348,11 +361,12 @@
<h2>Backlog</h2> <h2>Backlog</h2>
<p class="divider">&#9733; &#9733; &#9733;</p> <p class="divider">&#9733; &#9733; &#9733;</p>
<ul> <ul>
<li>Nem todos os comandos disponíveis estão cobertos aqui, apenas os mais importantes deles</li> <li>Not all available commands are covered here, only the most important ones</li>
<li>Você pode continuar a usar o git e todos os comandos dele normalmente como você já conhece, o git flow <li>You can still use git and all its commands normally as you know them, git flow is only a tooling
é apenas uma coleção de ferramentas</li> collection
<li>A funcionalidade 'support' continua no estágio beta, seu uso não é indicado</li> </li>
<li>Se você quiser fornecer traduções, ficarei feliz de integrá-las</li> <li>The 'support' feature is still beta, using it is not advised</li>
<li>If you'd like to supply translations I'd be happy to integrate them</li>
</ul> </ul>
<p class="divider">&#9733; &#9733; &#9733;</p> <p class="divider">&#9733; &#9733; &#9733;</p>
</div> </div>
@ -362,7 +376,7 @@
<footer> <footer>
<div class="scrollblock"> <div class="scrollblock">
<h2>Comentários</h2> <h2><a name="comments" href="#comments">Comments</a></h2>
<div id="disqus_thread"></div> <div id="disqus_thread"></div>
</div> </div>
@ -381,9 +395,9 @@
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})(); })();
</script> </script>
<noscript>Habilite o JavaScript para ver os <a href="http://disqus.com/?ref_noscript">comentários criados com o Disqus.</a> <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>
</noscript> </noscript>
<a href="http://disqus.com" class="dsq-brlink">comentários criados com o <span class="logo-disqus">Disqus</span></a> <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</body> </body>