OLD | NEW |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" |
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | 2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
4 <head> | 4 <head> |
5 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /
> | 5 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /
> |
6 <meta name="generator" content="AsciiDoc 8.6.9" /> | 6 <meta name="generator" content="AsciiDoc 8.6.9" /> |
7 <title>git-freeze(1)</title> | 7 <title>git-freeze(1)</title> |
8 <style type="text/css"> | 8 <style type="text/css"> |
9 /* Shared CSS for AsciiDoc xhtml11 and html5 backends */ | 9 /* Shared CSS for AsciiDoc xhtml11 and html5 backends */ |
10 | 10 |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 } | 528 } |
529 body.manpage div.sectionbody { | 529 body.manpage div.sectionbody { |
530 margin-left: 3em; | 530 margin-left: 3em; |
531 } | 531 } |
532 | 532 |
533 @media print { | 533 @media print { |
534 body.manpage div#toc { display: none; } | 534 body.manpage div#toc { display: none; } |
535 } | 535 } |
536 | 536 |
537 | 537 |
| 538 div.listingblock > div.content { |
| 539 background: rgb(28, 28, 28); |
| 540 } |
| 541 |
| 542 div.listingblock > div > pre > code { |
| 543 color: rgb(187, 187, 187); |
| 544 } |
538 </style> | 545 </style> |
539 <script type="text/javascript"> | 546 <script type="text/javascript"> |
540 /*<![CDATA[*/ | 547 /*<![CDATA[*/ |
541 var asciidoc = { // Namespace. | 548 var asciidoc = { // Namespace. |
542 | 549 |
543 ///////////////////////////////////////////////////////////////////// | 550 ///////////////////////////////////////////////////////////////////// |
544 // Table Of Contents generator | 551 // Table Of Contents generator |
545 ///////////////////////////////////////////////////////////////////// | 552 ///////////////////////////////////////////////////////////////////// |
546 | 553 |
547 /* Author: Mihai Bazon, September 2002 | 554 /* Author: Mihai Bazon, September 2002 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 </script> | 739 </script> |
733 </head> | 740 </head> |
734 <body class="manpage"> | 741 <body class="manpage"> |
735 <div id="header"> | 742 <div id="header"> |
736 <h1> | 743 <h1> |
737 git-freeze(1) Manual Page | 744 git-freeze(1) Manual Page |
738 </h1> | 745 </h1> |
739 <h2>NAME</h2> | 746 <h2>NAME</h2> |
740 <div class="sectionbody"> | 747 <div class="sectionbody"> |
741 <p>git-freeze - | 748 <p>git-freeze - |
742 Freeze all changes on a branch (indexed and unindexed) | 749 Freeze all changes on a branch (indexed and unindexed). |
743 </p> | 750 </p> |
744 </div> | 751 </div> |
745 </div> | 752 </div> |
746 <div id="content"> | 753 <div id="content"> |
747 <div class="sect1"> | 754 <div class="sect1"> |
748 <h2 id="_synopsis">SYNOPSIS</h2> | 755 <h2 id="_synopsis">SYNOPSIS</h2> |
749 <div class="sectionbody"> | 756 <div class="sectionbody"> |
750 <div class="verseblock"> | 757 <div class="verseblock"> |
751 <pre class="content"><em>git freeze</em></pre> | 758 <pre class="content"><em>git freeze</em></pre> |
752 <div class="attribution"> | 759 <div class="attribution"> |
753 </div></div> | 760 </div></div> |
754 </div> | 761 </div> |
755 </div> | 762 </div> |
756 <div class="sect1"> | 763 <div class="sect1"> |
757 <h2 id="_description">DESCRIPTION</h2> | 764 <h2 id="_description">DESCRIPTION</h2> |
758 <div class="sectionbody"> | 765 <div class="sectionbody"> |
759 <div class="paragraph"><p><code>git freeze</code> works a lot like <code>git sta
sh</code>, in that it stores the current changes | 766 <div class="paragraph"><p><code>git freeze</code> works a lot like <code>git sta
sh</code>, in that it stores the current changes |
760 in your working copy and index <em>somewhere</em>. Unlike <code>git stash</code>
, <code>git freeze</code> | 767 in your working copy and index <em>somewhere</em>. Unlike <code>git stash</code>
, <code>git freeze</code> |
761 stores those changes on your current branch. This effectively allows you to | 768 stores those changes on your current branch. This effectively allows you to |
762 <em>pause</em> development of a branch, work on something else, and then come ba
ck to | 769 <em>pause</em> development of a branch, work on something else, and then come ba
ck to |
763 exactly the same working state later (by running <code>git thaw</code>).</p></di
v> | 770 exactly the same working state later (by running <code>git thaw</code>).</p></di
v> |
764 <div class="paragraph"><p><code>git freeze</code> will make up to 2 commits on y
our branch. A commit with the message | 771 <div class="paragraph"><p><code>git freeze</code> will make up to 2 commits on y
our branch. A commit with the message |
765 <code>FREEZE.indexed</code> will contain all changes which you’ve added to your
index (like | 772 <code>FREEZE.indexed</code> will contain all changes which you’ve added to your
index (like |
766 with <em>git add</em>, <em>git mv</em>, <em>git rm</em>, etc.). A commit with th
e message | 773 with <em>git add</em>, <em>git mv</em>, <em>git rm</em>, etc.). A commit with th
e message |
767 <code>FREEZE.unindexed</code> will contain all changes which were not in your in
dex at the | 774 <code>FREEZE.unindexed</code> will contain all changes which were not in your in
dex at the |
768 time you ran git freeze (freshly modified files, new files, etc.).</p></div> | 775 time you ran git freeze (freshly modified files, new files, etc.).</p></div> |
769 </div> | 776 </div> |
770 </div> | 777 </div> |
771 <div class="sect1"> | 778 <div class="sect1"> |
| 779 <h2 id="_example">EXAMPLE</h2> |
| 780 <div class="sectionbody"> |
| 781 <div class="listingblock"> |
| 782 <div class="content"> |
| 783 <pre><code><strong><span class="white">$ git status --short</span></strong> |
| 784 <span class="green">A</span> added_file |
| 785 <span class="green">A</span>​<span class="red">M</span> added_file_with_un
staged_changes |
| 786 <span class="green">D</span> deleted_file |
| 787 <span class="red">M</span> modified_file |
| 788 <span class="red">D</span> unstaged_deleted_file |
| 789 <span class="red">??</span> unadded_file |
| 790 <strong><span class="white">$ git freeze</span></strong> |
| 791 <strong><span class="white">$ git status --short</span></strong> |
| 792 <strong><span class="white">$ git log -n 2 --stat</span></strong> |
| 793 <span class="yellow">commit 182eccae8e385acba21c9ff2713e98ff4b7e17cd</span> |
| 794 Author: Robert Iannucci <iannucci@chromium.org> |
| 795 Date: Thu Mar 13 17:42:37 2014 -0700 |
| 796 |
| 797 FREEZE.unindexed |
| 798 |
| 799 added_file_with_unstaged_changes | 3 <span class="green">++</span>​<span
class="red">-</span> |
| 800 modified_file | 4 <span class="green">+++</span>​<span
class="red">-</span> |
| 801 unadded_file | 3 <span class="green">+++</span> |
| 802 unstaged_deleted_file | 1 <span class="red">-</span> |
| 803 4 files changed, 8 insertions(+), 3 deletions(-) |
| 804 |
| 805 <span class="yellow">commit ce07bdc49a61f54e6142b4bba5cc517cf6802bd4</span> |
| 806 Author: Robert Iannucci <iannucci@chromium.org> |
| 807 Date: Thu Mar 13 17:42:37 2014 -0700 |
| 808 |
| 809 FREEZE.indexed |
| 810 |
| 811 added_file | 3 <span class="green">+++</span> |
| 812 added_file_with_unstaged_changes | 1 <span class="green">+</span> |
| 813 deleted_file | 1 <span class="red">-</span> |
| 814 3 files changed, 4 insertions(+), 1 deletion(-) |
| 815 <strong><span class="white">$ git thaw</span></strong> |
| 816 <strong><span class="white">$ git status --short</span></strong> |
| 817 <span class="green">A</span> added_file |
| 818 <span class="green">A</span>​<span class="red">M</span> added_file_with_un
staged_changes |
| 819 <span class="green">D</span> deleted_file |
| 820 <span class="red">M</span> modified_file |
| 821 <span class="red">D</span> unstaged_deleted_file |
| 822 <span class="red">??</span> unadded_file</code></pre> |
| 823 </div></div> |
| 824 </div> |
| 825 </div> |
| 826 <div class="sect1"> |
772 <h2 id="_see_also">SEE ALSO</h2> | 827 <h2 id="_see_also">SEE ALSO</h2> |
773 <div class="sectionbody"> | 828 <div class="sectionbody"> |
774 <div class="paragraph"><p><a href="git-thaw.html">git-thaw(1)</a></p></div> | 829 <div class="paragraph"><p><a href="git-thaw.html">git-thaw(1)</a></p></div> |
775 </div> | 830 </div> |
776 </div> | 831 </div> |
777 <div class="sect1"> | 832 <div class="sect1"> |
778 <h2 id="_chromium_depot_tools">CHROMIUM DEPOT_TOOLS</h2> | 833 <h2 id="_chromium_depot_tools">CHROMIUM DEPOT_TOOLS</h2> |
779 <div class="sectionbody"> | 834 <div class="sectionbody"> |
780 <div class="paragraph"><p>Part of the chromium depot_tools suite. These tools ar
e meant to assist with the | 835 <div class="paragraph"><p>Part of the chromium <a href="depot_tools.html">depot_
tools(1)</a> suite. These tools are meant to |
781 development of chromium and related projects. Download the tools from | 836 assist with the development of chromium and related projects. Download the tools |
782 <a href="https://chromium.googlesource.com/chromium/tools/depot_tools.git">here<
/a>.</p></div> | 837 from <a href="https://chromium.googlesource.com/chromium/tools/depot_tools.git">
here</a>.</p></div> |
783 </div> | 838 </div> |
784 </div> | 839 </div> |
785 </div> | 840 </div> |
786 <div id="footnotes"><hr /></div> | 841 <div id="footnotes"><hr /></div> |
787 <div id="footer"> | 842 <div id="footer"> |
788 <div id="footer-text"> | 843 <div id="footer-text"> |
789 Last updated 2014-03-13 17:20:25 PDT | 844 Last updated 2014-03-14 14:01:10 PDT |
790 </div> | 845 </div> |
791 </div> | 846 </div> |
792 </body> | 847 </body> |
793 </html> | 848 </html> |
OLD | NEW |