|
377 | 377 | "### `git init`: create an empty repository" |
378 | 378 | ] |
379 | 379 | }, |
| 380 | + { |
| 381 | + "cell_type": "code", |
| 382 | + "execution_count": 3, |
| 383 | + "metadata": {}, |
| 384 | + "outputs": [ |
| 385 | + { |
| 386 | + "data": { |
| 387 | + "text/plain": [ |
| 388 | + "'/Users/fperez/teach/icesat2/intro-jupyter-git'" |
| 389 | + ] |
| 390 | + }, |
| 391 | + "execution_count": 3, |
| 392 | + "metadata": {}, |
| 393 | + "output_type": "execute_result" |
| 394 | + } |
| 395 | + ], |
| 396 | + "source": [ |
| 397 | + "%pwd" |
| 398 | + ] |
| 399 | + }, |
380 | 400 | { |
381 | 401 | "cell_type": "code", |
382 | 402 | "execution_count": 4, |
|
439 | 459 | "output_type": "stream", |
440 | 460 | "text": [ |
441 | 461 | "total 0\n", |
442 | | - "drwxr-xr-x 3 fperez staff 96 Jun 17 02:09 .\n", |
443 | | - "drwxr-xr-x 27 fperez staff 864 Jun 17 02:09 ..\n", |
444 | | - "drwxr-xr-x 9 fperez staff 288 Jun 17 02:09 .git\n" |
| 462 | + "drwxr-xr-x 3 fperez staff 96 Jun 19 08:52 .\n", |
| 463 | + "drwxr-xr-x 31 fperez staff 992 Jun 19 08:52 ..\n", |
| 464 | + "drwxr-xr-x 9 fperez staff 288 Jun 19 08:52 .git\n" |
445 | 465 | ] |
446 | 466 | } |
447 | 467 | ], |
|
464 | 484 | "output_type": "stream", |
465 | 485 | "text": [ |
466 | 486 | "total 24\n", |
467 | | - "-rw-r--r-- 1 fperez staff 23 Jun 17 02:09 HEAD\n", |
468 | | - "-rw-r--r-- 1 fperez staff 137 Jun 17 02:09 config\n", |
469 | | - "-rw-r--r-- 1 fperez staff 73 Jun 17 02:09 description\n", |
470 | | - "drwxr-xr-x 13 fperez staff 416 Jun 17 02:09 hooks\n", |
471 | | - "drwxr-xr-x 3 fperez staff 96 Jun 17 02:09 info\n", |
472 | | - "drwxr-xr-x 4 fperez staff 128 Jun 17 02:09 objects\n", |
473 | | - "drwxr-xr-x 4 fperez staff 128 Jun 17 02:09 refs\n" |
| 487 | + "-rw-r--r-- 1 fperez staff 23 Jun 19 08:52 HEAD\n", |
| 488 | + "-rw-r--r-- 1 fperez staff 137 Jun 19 08:52 config\n", |
| 489 | + "-rw-r--r-- 1 fperez staff 73 Jun 19 08:52 description\n", |
| 490 | + "drwxr-xr-x 13 fperez staff 416 Jun 19 08:52 hooks\n", |
| 491 | + "drwxr-xr-x 3 fperez staff 96 Jun 19 08:52 info\n", |
| 492 | + "drwxr-xr-x 4 fperez staff 128 Jun 19 08:52 objects\n", |
| 493 | + "drwxr-xr-x 4 fperez staff 128 Jun 19 08:52 refs\n" |
474 | 494 | ] |
475 | 495 | } |
476 | 496 | ], |
|
578 | 598 | }, |
579 | 599 | { |
580 | 600 | "cell_type": "code", |
581 | | - "execution_count": 16, |
| 601 | + "execution_count": 11, |
582 | 602 | "metadata": {}, |
583 | 603 | "outputs": [ |
584 | 604 | { |
585 | 605 | "name": "stdout", |
586 | 606 | "output_type": "stream", |
587 | 607 | "text": [ |
588 | | - "[master (root-commit) 8ce7775] This is our first commit\n", |
| 608 | + "[master (root-commit) f850212] This is our first commit\n", |
589 | 609 | " 1 file changed, 1 insertion(+)\n", |
590 | 610 | " create mode 100644 file1.txt\n" |
591 | 611 | ] |
|
618 | 638 | }, |
619 | 639 | { |
620 | 640 | "cell_type": "code", |
621 | | - "execution_count": 17, |
| 641 | + "execution_count": 12, |
622 | 642 | "metadata": {}, |
623 | 643 | "outputs": [ |
624 | 644 | { |
625 | 645 | "name": "stdout", |
626 | 646 | "output_type": "stream", |
627 | 647 | "text": [ |
628 | | - "commit 8ce7775da6ee3d042f78924aa1904154fd4c92f8\n", |
| 648 | + "commit f850212ca594f6e4c4ba246f1567f1d21e8869a8\n", |
629 | 649 | "Author: Fernando Perez <Fernando.Perez@berkeley.edu>\n", |
630 | | - "Date: Wed Sep 6 23:24:25 2017 -0700\n", |
| 650 | + "Date: Wed Jun 19 08:52:41 2019 -0700\n", |
631 | 651 | "\n", |
632 | 652 | " This is our first commit\n" |
633 | 653 | ] |
|
656 | 676 | }, |
657 | 677 | { |
658 | 678 | "cell_type": "code", |
659 | | - "execution_count": 18, |
| 679 | + "execution_count": 13, |
660 | 680 | "metadata": { |
661 | 681 | "collapsed": true, |
662 | 682 | "jupyter": { |
|
680 | 700 | }, |
681 | 701 | { |
682 | 702 | "cell_type": "code", |
683 | | - "execution_count": 19, |
| 703 | + "execution_count": 14, |
684 | 704 | "metadata": {}, |
685 | 705 | "outputs": [ |
686 | 706 | { |
|
752 | 772 | }, |
753 | 773 | { |
754 | 774 | "cell_type": "code", |
755 | | - "execution_count": 20, |
| 775 | + "execution_count": 15, |
756 | 776 | "metadata": {}, |
757 | 777 | "outputs": [ |
758 | 778 | { |
759 | 779 | "name": "stdout", |
760 | 780 | "output_type": "stream", |
761 | 781 | "text": [ |
762 | | - "[master f0163df] I have made great progress on this critical matter.\n", |
| 782 | + "[master 943ee30] I have made great progress on this critical matter.\n", |
763 | 783 | " 1 file changed, 1 insertion(+)\n" |
764 | 784 | ] |
765 | 785 | } |
|
787 | 807 | }, |
788 | 808 | { |
789 | 809 | "cell_type": "code", |
790 | | - "execution_count": 21, |
| 810 | + "execution_count": 16, |
791 | 811 | "metadata": {}, |
792 | 812 | "outputs": [ |
793 | 813 | { |
794 | 814 | "name": "stdout", |
795 | 815 | "output_type": "stream", |
796 | 816 | "text": [ |
797 | | - "commit f0163df7db81ece0345dccc6d975dec9d4d7529f\n", |
| 817 | + "commit 943ee30cdfc3a32f4b6f8f8c6b1ef4f6ca505624\n", |
798 | 818 | "Author: Fernando Perez <Fernando.Perez@berkeley.edu>\n", |
799 | | - "Date: Wed Sep 6 23:24:34 2017 -0700\n", |
| 819 | + "Date: Wed Jun 19 08:52:56 2019 -0700\n", |
800 | 820 | "\n", |
801 | 821 | " I have made great progress on this critical matter.\n", |
802 | 822 | "\n", |
803 | | - "commit 8ce7775da6ee3d042f78924aa1904154fd4c92f8\n", |
| 823 | + "commit f850212ca594f6e4c4ba246f1567f1d21e8869a8\n", |
804 | 824 | "Author: Fernando Perez <Fernando.Perez@berkeley.edu>\n", |
805 | | - "Date: Wed Sep 6 23:24:25 2017 -0700\n", |
| 825 | + "Date: Wed Jun 19 08:52:41 2019 -0700\n", |
806 | 826 | "\n", |
807 | 827 | " This is our first commit\n" |
808 | 828 | ] |
|
824 | 844 | }, |
825 | 845 | { |
826 | 846 | "cell_type": "code", |
827 | | - "execution_count": 22, |
| 847 | + "execution_count": 17, |
828 | 848 | "metadata": {}, |
829 | 849 | "outputs": [ |
830 | 850 | { |
831 | 851 | "name": "stdout", |
832 | 852 | "output_type": "stream", |
833 | 853 | "text": [ |
834 | | - "* f0163df I have made great progress on this critical matter.\n", |
835 | | - "* 8ce7775 This is our first commit\n" |
| 854 | + "* 943ee30 I have made great progress on this critical matter.\n", |
| 855 | + "* f850212 This is our first commit\n" |
836 | 856 | ] |
837 | 857 | } |
838 | 858 | ], |
|
852 | 872 | }, |
853 | 873 | { |
854 | 874 | "cell_type": "code", |
855 | | - "execution_count": 23, |
| 875 | + "execution_count": 18, |
856 | 876 | "metadata": {}, |
857 | 877 | "outputs": [ |
858 | 878 | { |
859 | 879 | "name": "stdout", |
860 | 880 | "output_type": "stream", |
861 | 881 | "text": [ |
862 | | - "* f0163df I have made great progress on this critical matter.\n", |
863 | | - "* 8ce7775 This is our first commit\n" |
| 882 | + "* 943ee30 I have made great progress on this critical matter.\n", |
| 883 | + "* f850212 This is our first commit\n" |
864 | 884 | ] |
865 | 885 | } |
866 | 886 | ], |
|
891 | 911 | }, |
892 | 912 | { |
893 | 913 | "cell_type": "code", |
894 | | - "execution_count": 24, |
| 914 | + "execution_count": 19, |
895 | 915 | "metadata": {}, |
896 | 916 | "outputs": [ |
897 | 917 | { |
|
924 | 944 | }, |
925 | 945 | { |
926 | 946 | "cell_type": "code", |
927 | | - "execution_count": 25, |
| 947 | + "execution_count": 20, |
928 | 948 | "metadata": {}, |
929 | 949 | "outputs": [ |
930 | 950 | { |
931 | 951 | "name": "stdout", |
932 | 952 | "output_type": "stream", |
933 | 953 | "text": [ |
934 | | - "[master 258b69f] I like this new name better\n", |
| 954 | + "[master db7b10a] I like this new name better\n", |
935 | 955 | " 1 file changed, 0 insertions(+), 0 deletions(-)\n", |
936 | 956 | " rename file1.txt => file-newname.txt (100%)\n", |
937 | 957 | "Let's look at the log again:\n", |
938 | | - "* 258b69f I like this new name better\n", |
939 | | - "* f0163df I have made great progress on this critical matter.\n", |
940 | | - "* 8ce7775 This is our first commit\n" |
| 958 | + "* db7b10a I like this new name better\n", |
| 959 | + "* 943ee30 I have made great progress on this critical matter.\n", |
| 960 | + "* f850212 This is our first commit\n" |
941 | 961 | ] |
942 | 962 | } |
943 | 963 | ], |
|
1044 | 1064 | }, |
1045 | 1065 | { |
1046 | 1066 | "cell_type": "code", |
1047 | | - "execution_count": 26, |
| 1067 | + "execution_count": 21, |
1048 | 1068 | "metadata": {}, |
1049 | 1069 | "outputs": [ |
1050 | 1070 | { |
|
1074 | 1094 | }, |
1075 | 1095 | { |
1076 | 1096 | "cell_type": "code", |
1077 | | - "execution_count": 27, |
| 1097 | + "execution_count": 22, |
1078 | 1098 | "metadata": {}, |
1079 | 1099 | "outputs": [ |
1080 | 1100 | { |
|
1095 | 1115 | }, |
1096 | 1116 | { |
1097 | 1117 | "cell_type": "code", |
1098 | | - "execution_count": 28, |
| 1118 | + "execution_count": 23, |
1099 | 1119 | "metadata": {}, |
1100 | 1120 | "outputs": [ |
1101 | 1121 | { |
1102 | 1122 | "name": "stdout", |
1103 | 1123 | "output_type": "stream", |
1104 | 1124 | "text": [ |
1105 | | - "[experiment e663a7f] Trying something new\n", |
| 1125 | + "[experiment c5f8e8a] Trying something new\n", |
1106 | 1126 | " 1 file changed, 1 insertion(+)\n", |
1107 | 1127 | " create mode 100644 experiment.txt\n", |
1108 | | - "* e663a7f Trying something new\n", |
1109 | | - "* 258b69f I like this new name better\n", |
1110 | | - "* f0163df I have made great progress on this critical matter.\n", |
1111 | | - "* 8ce7775 This is our first commit\n" |
| 1128 | + "* c5f8e8a Trying something new\n", |
| 1129 | + "* db7b10a I like this new name better\n", |
| 1130 | + "* 943ee30 I have made great progress on this critical matter.\n", |
| 1131 | + "* f850212 This is our first commit\n" |
1112 | 1132 | ] |
1113 | 1133 | } |
1114 | 1134 | ], |
|
1124 | 1144 | }, |
1125 | 1145 | { |
1126 | 1146 | "cell_type": "code", |
1127 | | - "execution_count": 29, |
| 1147 | + "execution_count": 24, |
1128 | 1148 | "metadata": {}, |
1129 | 1149 | "outputs": [ |
1130 | 1150 | { |
1131 | 1151 | "name": "stdout", |
1132 | 1152 | "output_type": "stream", |
1133 | 1153 | "text": [ |
1134 | | - "* 258b69f I like this new name better\n", |
1135 | | - "* f0163df I have made great progress on this critical matter.\n", |
1136 | | - "* 8ce7775 This is our first commit\n" |
| 1154 | + "* db7b10a I like this new name better\n", |
| 1155 | + "* 943ee30 I have made great progress on this critical matter.\n", |
| 1156 | + "* f850212 This is our first commit\n" |
1137 | 1157 | ] |
1138 | 1158 | }, |
1139 | 1159 | { |
|
1154 | 1174 | }, |
1155 | 1175 | { |
1156 | 1176 | "cell_type": "code", |
1157 | | - "execution_count": 30, |
| 1177 | + "execution_count": 25, |
1158 | 1178 | "metadata": {}, |
1159 | 1179 | "outputs": [ |
1160 | 1180 | { |
1161 | 1181 | "name": "stdout", |
1162 | 1182 | "output_type": "stream", |
1163 | 1183 | "text": [ |
1164 | | - "[master 38c854c] The mainline keeps moving\n", |
| 1184 | + "[master 5bb96bd] The mainline keeps moving\n", |
1165 | 1185 | " 1 file changed, 1 insertion(+)\n", |
1166 | | - "* 38c854c The mainline keeps moving\n", |
1167 | | - "* 258b69f I like this new name better\n", |
1168 | | - "* f0163df I have made great progress on this critical matter.\n", |
1169 | | - "* 8ce7775 This is our first commit\n" |
| 1186 | + "* 5bb96bd The mainline keeps moving\n", |
| 1187 | + "* db7b10a I like this new name better\n", |
| 1188 | + "* 943ee30 I have made great progress on this critical matter.\n", |
| 1189 | + "* f850212 This is our first commit\n" |
1170 | 1190 | ] |
1171 | 1191 | } |
1172 | 1192 | ], |
|
1188 | 1208 | }, |
1189 | 1209 | { |
1190 | 1210 | "cell_type": "code", |
1191 | | - "execution_count": 33, |
| 1211 | + "execution_count": 26, |
1192 | 1212 | "metadata": {}, |
1193 | 1213 | "outputs": [ |
1194 | 1214 | { |
1195 | 1215 | "name": "stdout", |
1196 | 1216 | "output_type": "stream", |
1197 | 1217 | "text": [ |
1198 | | - "* 38c854c The mainline keeps moving\n", |
1199 | | - "| * e663a7f Trying something new\n", |
| 1218 | + "* 5bb96bd The mainline keeps moving\n", |
| 1219 | + "| * c5f8e8a Trying something new\n", |
1200 | 1220 | "|/ \n", |
1201 | | - "* 258b69f I like this new name better\n", |
1202 | | - "* f0163df I have made great progress on this critical matter.\n", |
1203 | | - "* 8ce7775 This is our first commit\n" |
| 1221 | + "* db7b10a I like this new name better\n", |
| 1222 | + "* 943ee30 I have made great progress on this critical matter.\n", |
| 1223 | + "* f850212 This is our first commit\n" |
1204 | 1224 | ] |
1205 | 1225 | } |
1206 | 1226 | ], |
|
1220 | 1240 | }, |
1221 | 1241 | { |
1222 | 1242 | "cell_type": "code", |
1223 | | - "execution_count": 34, |
| 1243 | + "execution_count": 27, |
1224 | 1244 | "metadata": {}, |
1225 | 1245 | "outputs": [ |
1226 | 1246 | { |
|
1240 | 1260 | }, |
1241 | 1261 | { |
1242 | 1262 | "cell_type": "code", |
1243 | | - "execution_count": 35, |
| 1263 | + "execution_count": 28, |
1244 | 1264 | "metadata": {}, |
1245 | 1265 | "outputs": [ |
1246 | 1266 | { |
|
1251 | 1271 | " experiment.txt | 1 +\n", |
1252 | 1272 | " 1 file changed, 1 insertion(+)\n", |
1253 | 1273 | " create mode 100644 experiment.txt\n", |
1254 | | - "* 83a8fc1 Merge branch 'experiment'\n", |
| 1274 | + "* f449025 Merge branch 'experiment'\n", |
1255 | 1275 | "|\\ \n", |
1256 | | - "| * e663a7f Trying something new\n", |
1257 | | - "* | 38c854c The mainline keeps moving\n", |
| 1276 | + "| * c5f8e8a Trying something new\n", |
| 1277 | + "* | 5bb96bd The mainline keeps moving\n", |
1258 | 1278 | "|/ \n", |
1259 | | - "* 258b69f I like this new name better\n", |
1260 | | - "* f0163df I have made great progress on this critical matter.\n", |
1261 | | - "* 8ce7775 This is our first commit\n" |
| 1279 | + "* db7b10a I like this new name better\n", |
| 1280 | + "* 943ee30 I have made great progress on this critical matter.\n", |
| 1281 | + "* f850212 This is our first commit\n" |
1262 | 1282 | ] |
1263 | 1283 | } |
1264 | 1284 | ], |
|
0 commit comments