Git to do list

Posted by Yulai Blog on December 1, 2015

#GIT CHEATSHEET

Did you ever mess up with Git? What’s the situation you met?

┌─[julian@virtualcentos] - [~/GitHub/coding] - [Mon Nov 30, 09:16] └─[$] <git:(learn-something)> cat .git/HEAD ref: refs/heads/learn-something ┌─[julian@virtualcentos] - [~/GitHub/coding] - [Mon Nov 30, 09:21] └─[$] <git:(learn-something)> cat .git/refs/heads/learn-something 29a5c672c96af06ce30a72fc7796b42bb6b530cb ┌─[julian@virtualcentos] - [~/GitHub/coding] - [Mon Nov 30, 09:22] └─[$] <git:(learn-something)> cat .git/refs/heads/master 29a5c672c96af06ce30a72fc7796b42bb6b530cb

┌─[julian@virtualcentos] - [~/GitHub/coding] - [Mon Nov 30, 09:22] └─[$] <git:(learn-something)> cat .git/refs/tags/v1.0 ecc772bab7d4391e8c4a3e28bd31b9297877a274 ┌─[julian@virtualcentos] - [~/GitHub/coding] - [Mon Nov 30, 09:23] └─[$] <git:(learn-something)> cat .git/refs/tags/v1.1 8a5c26265f8d184d7356f6ed234578e70b07ba64 ┌─[julian@virtualcentos] - [~/GitHub/coding] - [Mon Nov 30, 09:23] └─[$] <git:(learn-something)> cat .git/refs/tags/v2.0 4f05fddb4291b66d5bb0c6501307248156bc1e0f

┌─[julian@virtualcentos] - [~/GitHub/coding] - [Mon Nov 30, 08:54] └─[$] <git:(learn-something)> tree -a . |– .git | |– branches | |– config | |– description | |– gitk.cache | |– HEAD | |– hooks | | |– applypatch-msg.sample | | |– commit-msg.sample | | |– post-update.sample | | |– pre-applypatch.sample | | |– pre-commit.sample | | |– prepare-commit-msg.sample | | |– pre-push.sample | | |– pre-rebase.sample | | -- update.sample | |-- index | |-- info | | – exclude | |– logs | | |– HEAD | | -- refs | | |-- heads | | | |-- learn-something | | | – master | | -- remotes | | – origin | | -- HEAD | |-- objects | | |-- 03 | | | – 424373a1906f7f054da0ff7267bc155c11a13d | | |– 08 | | | -- 97db0ef43335283dc8d1470e0c2ca0691a7ab4 | | |-- 0d | | | – 8602472d99423dff91136854ef1c52658e7b34 | | |– 16 | | | -- 6ee7242ad3dfff4b82af3ed45a401cb7d565cd | | |-- 1d | | | – cda6789d8b736401838f2865ef0c0ba75dac42 | | |– 20 | | | -- efd1b3e9763444d06a2d5e47b6bf048d83e7f4 | | |-- 22 | | | – 6e54167d5bdd9399855df2ab4a318a48ab50a3 | | |– 27 | | | -- 5a5111c1931befa071d4ead8010c92e47740d7 | | |-- 29 | | | – a5c672c96af06ce30a72fc7796b42bb6b530cb | | |– 35 | | | -- eedbca9f5b19623422b801dbd9e033698ac8e4 | | |-- 39 | | | – 30c49ef856dc9907627625b8439cf6d5abc0a2 | | |– 3a | | | -- 367b3caf2b0d29462fefbaf469a3848c8470ea | | |-- 3b | | | – 1791fdbf364da51d13d63b8f95ebcbf49db8ad | | |– 3f | | | -- a022b74a8669ed20db80ed9b33fd2b0d3ca3e2 | | |-- 40 | | | – f04a720a3877487c3cc1e0f1d213ce4286171f | | |– 48 | | | -- ea1a5f1274502dcb35f046c000b75b5f343117 | | |-- 49 | | | – 13c15e3cef3014345e9395977cce18a19c5e50 | | |– 4a | | | |– 059313d0aa142d2cf8c3ceed4c16b18b3b514d | | | |– 2f1fc75d63b1d86515741bc7359b3714f62a26 | | | -- e15d44063ad857130d5eebafd739b04eb22e36 | | |-- 4f | | | – 05fddb4291b66d5bb0c6501307248156bc1e0f | | |– 58 | | | -- df0abf76f67dca792a807b3a7b2e6f3994909a | | |-- 5f | | | – c7a1fe22f8be1d41d07d8369a386bc9b30d83e | | |– 66 | | | -- b15f02cff78ab513bd56a6fc4501eaba822acd | | |-- 69 | | | – 2fdc3b3ed190f5c79d5cfb0bdec6a02c2aa543 | | |– 6b | | | -- 35e2fa50c6328862c67978689f0a3dd6989ff1 | | |-- 6f | | | – 6cc68153ae6e06dffc18729bb93e4d1ee06b0c | | |– 71 | | | -- b7c928f6f2a989c2a0b1136a0176d01d4f51ec | | |-- 79 | | | – 10ddb36e8d3804faca9684d224d5df935803b4 | | |– 82 | | | -- 5cc7e364c00676a0f076147c31949feaaa3073 | | |-- 8a | | | – 5c26265f8d184d7356f6ed234578e70b07ba64 | | |– 8b | | | -- 137891791fe96927ad78e64b0aad7bded08bdc | | |-- 8f | | | |-- 3105a02440634082240bf67558e835a0f44457 | | | – 626adb827452da612332d60380cb368724c192 | | |– 97 | | | -- 59093c5b476688fed49bf406dbd617b2d83a3f | | |-- 9c | | | |-- 7db9fe84736c209e1c98139638c1201458ecc0 | | | – b9cc43d60bfdf07b745f219e336df933f33be2 | | |– 9e | | | -- 42b31d5fcfa634c307d6cc80719f586455f3eb | | |-- 9f | | | – 6ca7f39deffd482e5526a1a33009d498376a41 | | |– a1 | | | -- 1b94f7f681603b45300bc3e0ea607584cfde0d | | |-- a8 | | | – aef6ec28857beaabe601129ceac91fe41d28e4 | | |– b1 | | | -- c4d46f433805f859a8bbb5e170302c5513b5ee | | |-- b8 | | | – 490a447895adcf8f3f8d07998fcaa0e7a2a2a9 | | |– ba | | | -- 0d4555174b945ddfc7a086edabd125424b4867 | | |-- c3 | | | – 3348ba800d47c7ea67ebe003473f2831d1a66f | | |– cb | | | -- 028213e5d008ce45350ceed3ba75bae9e96e14 | | |-- ce | | | – 1c33784e723422c2cef15750cde9b50081768e | | |– da | | | -- 4503fc2f0c5316f19472f45fa518080a5b806f | | |-- e0 | | | – b54b4ca097158711fd71af27c5ef9f396ef082 | | |– e4 | | | -- f078400b5ff45b945e1e51ae4a40458f254598 | | |-- e5 | | | – fab7eff67307e2e9b22a14f05507c61b4e6423 | | |– ea | | | -- 270b7e970c0799a4822196a37251c0ee0e56cd | | |-- ec | | | |-- 8e26219b5af6b055a13cc24cd19d46405eeeb0 | | | |-- c772bab7d4391e8c4a3e28bd31b9297877a274 | | | – ee1f97756fb63e88d373d1b74e7aa9b9ec6267 | | |– f5 | | | -- 32910f16529e7b4cd43e8eb2259e3bff6203ab | | |-- f6 | | | – 59697c63b4c2616651553509f26c75b165ad4d | | |– f8 | | | -- d583f3c52e49e7b641c134cb496c56a04e2475 | | |-- fe | | | |-- 0522e803898898c745a07f172a9c3a40fb4e03 | | | – 544154bad872eae33681b350559e93b52c8850 | | |– info | | -- pack | |-- packed-refs | – refs | |– heads | | |– learn-something | | -- master | |-- remotes | | – origin | | -- HEAD | – tags | |– v1.0 | |– v1.1 | -- v2.0 |-- learn_cpp.md |-- learn_git.md |-- learn_shell.md |-- LICENSE |-- README.md – samples |– boost | |– boost_array.cc | -- boost_lambda.cc |-- cpp_11 | |-- c11_array.cpp | |-- c11_initialize.cc | |-- c11_lambda.cc | – c11_regex.cc |– c_test.c |– for_each.cc |– function_overload.cc |– include_cstdio.cc |– include_stdio_h.cc |– namespace_scope.cc `– template_sample.cc