Advertisement
Guest User

Praktik Buku Git Essentials

a guest
Dec 3rd, 2017
705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 62.91 KB | None | 0 0
  1. Last login: Tue Nov 28 20:17:55 on console
  2. sDo not meddle in the affairs of troff, for it is subtle and quick to anger.
  3.  
  4. # bowo at Bowos-Sony-Vaio.local in ~ [8:48:22]
  5. sudo open-tun0
  6. ^C
  7.  
  8. # bowo at Bowos-Sony-Vaio.local in ~ [20:58:14]
  9.  
  10. # bowo at Bowos-Sony-Vaio.local in ~ [20:58:14]
  11. → nslookup google.com
  12. Server:     192.168.1.1
  13. Address:    192.168.1.1#53
  14.  
  15. ** server can't find google.com: REFUSED
  16.  
  17.  
  18. # bowo at Bowos-Sony-Vaio.local in ~ [16:38:05]
  19. → nslookup google.co.id
  20. Server:     192.168.1.1
  21. Address:    192.168.1.1#53
  22.  
  23. Non-authoritative answer:
  24. Name:   google.co.id
  25. Address: 216.58.221.67
  26.  
  27.  
  28. # bowo at Bowos-Sony-Vaio.local in ~ [16:38:11]
  29. → python
  30. Python 2.7.10 (default, Jul 30 2016, 19:40:32)
  31. [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
  32. Type "help", "copyright", "credits" or "license" for more information.
  33. >>> x=3
  34. >>> if x > 4:
  35. ... print "x is less then 4 ",x
  36.  File "<stdin>", line 2
  37.    print "x is less then 4 ",x
  38.        ^
  39. IndentationError: expected an indented block
  40. >>> if x > 4:
  41. ...   print "x is less then 4 ",x
  42. ...
  43. >>> if x < 4:
  44. ...   print "x is less then 4 ",x
  45. ...
  46. x is less then 4  3
  47. >>> ^D
  48.  
  49. # bowo at Bowos-Sony-Vaio.local in ~ [10:49:49]
  50. → python3
  51. Python 3.5.1 (default, Apr 18 2016, 03:49:24)
  52. [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
  53. Type "help", "copyright", "credits" or "license" for more information.
  54. >>> x=3
  55. >>> if x<4:
  56. ...   print "x is less than 4, x is ",x
  57.  File "<stdin>", line 2
  58.    print "x is less than 4, x is ",x
  59.                                  ^
  60. SyntaxError: Missing parentheses in call to 'print'
  61. >>> print
  62. <built-in function print>
  63. >>> print test
  64.  File "<stdin>", line 1
  65.    print test
  66.             ^
  67. SyntaxError: Missing parentheses in call to 'print'
  68. >>> echo
  69. Traceback (most recent call last):
  70.  File "<stdin>", line 1, in <module>
  71. NameError: name 'echo' is not defined
  72. >>>
  73.  
  74. # bowo at Bowos-Sony-Vaio.local in ~ [19:35:49]
  75. → cd Documents/Repo/MyFirstRepo
  76.  
  77. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:35:55]
  78. → ls
  79.  
  80. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:36:03]
  81. → git s
  82. send-email   -- send collection of patches as emails
  83. send-pack    -- push objects over git protocol to another repository
  84. shell        -- restricted login shell for GIT-only SSH access
  85. shortlog     -- summarize git log output
  86. show         -- show various types of objects
  87. show-branch  -- show branches and their commits
  88. show-index   -- show packed archive index
  89. show-ref     -- list references in a local repository
  90. stash        -- stash away changes to dirty working directory
  91. status       -- show working-tree status
  92. stripspace   -- filter out empty lines
  93. submodule    -- initialize, update, or inspect submodules
  94. svn          -- bidirectional operation between a Subversion repository and git
  95. symbolic-ref -- read and modify symbolic references
  96.  
  97. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:36:11]
  98. → git status
  99. On branch master
  100.  
  101. Initial commit
  102.  
  103. Changes to be committed:
  104.  (use "git rm --cached <file>..." to unstage)
  105.  
  106.     new file:   file.txt
  107.  
  108.  
  109. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:36:15]
  110. → git commit --message="First commit"
  111. [master (root-commit) 1a36c06] First commit
  112. 1 file changed, 1 insertion(+)
  113. create mode 100644 file.txt
  114.  
  115. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ● [19:37:33]
  116. → echo "That's easy" >> file.txt
  117.  
  118. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:38:45]
  119. → git status
  120. On branch master
  121. Changes not staged for commit:
  122.  (use "git add <file>..." to update what will be committed)
  123.  (use "git checkout -- <file>..." to discard changes in working directory)
  124.  
  125.     modified:   file.txt
  126.  
  127. no changes added to commit (use "git add" and/or "git commit -a")
  128.  
  129. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:38:49]
  130. → git status
  131. On branch master
  132. Changes not staged for commit:
  133.  (use "git add <file>..." to update what will be committed)
  134.  (use "git checkout -- <file>..." to discard changes in working directory)
  135.  
  136.     modified:   file.txt
  137.  
  138. no changes added to commit (use "git add" and/or "git commit -a")
  139.  
  140.  
  141.  
  142.  1 Second commit, thing are becoming serious :D
  143. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:41:39]
  144. → git commit
  145. On branch master
  146. Changes not staged for commit:
  147.     modified:   file.txt
  148.  
  149. no changes added to commit
  150.  
  151. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:41:43]
  152. → git add file.txt
  153.  
  154. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:41:49]
  155. → git commit
  156. error: There was a problem with the editor 'vi'.
  157. Please supply the message using either -m or -F option.
  158.  
  159. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:42:39]
  160. → git status
  161. On branch master
  162. Changes to be committed:
  163.  (use "git reset HEAD <file>..." to unstage)
  164.  
  165.     modified:   file.txt
  166.  
  167.  
  168. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:43:58]
  169. → git
  170. add                -- add file contents to index
  171. am                 -- apply patches from a mailbox
  172. apply              -- apply patch to files and/or to index
  173. archimport         -- import an Arch repository into git
  174. archive            -- create archive of files from named tree
  175. bisect             -- find, by binary search, change that introduced a bug
  176. blame              -- show what revision and author last modified each line of a file
  177. branch             -- list, create, or delete branches
  178. bundle             -- move objects and refs by archive
  179. cat-file           -- provide content or type information for repository objects
  180. check-attr         -- display gitattributes information
  181. check-ignore       -- debug gitignore/exclude files
  182. check-mailmap      -- show canonical names and email addresses of contacts
  183. check-ref-format   -- ensure that a reference name is well formed
  184. checkout           -- checkout branch or paths to working tree
  185. checkout-index     -- copy files from index to working directory
  186. cherry             -- find commits not merged upstream
  187. cherry-pick        -- apply changes introduced by some existing commits
  188. citool             -- graphical alternative to git commit
  189. clean              -- remove untracked files from working tree
  190. clone              -- clone repository into new directory
  191. commit             -- record changes to repository
  192. commit-tree        -- create new commit object
  193. config             -- get and set repository or global options
  194. count-objects      -- count unpacked objects and display their disk consumption
  195. cvsexportcommit    -- export a single commit to a CVS checkout
  196. cvsimport          -- import a CVS "repository" into a git repository
  197. cvsserver          -- run a CVS server emulator for git
  198. daemon             -- run a really simple server for git repositories
  199. describe           -- show most recent tag that is reachable from a commit
  200. diff               -- show changes between commits, commit and working tree, etc.
  201. diff-files         -- compare files in working tree and index
  202. diff-index         -- compare content and mode of blobs between index and repository
  203. diff-tree          -- compare content and mode of blobs found via two tree objects
  204. difftool           -- show changes using common diff tools
  205. fast-export        -- data exporter
  206. fast-import        -- import information into git directly
  207. fetch              -- download objects and refs from another repository
  208. fetch-pack         -- receive missing objects from another repository
  209. filter-branch      -- rewrite branches
  210. fmt-merge-msg      -- produce merge commit message
  211. for-each-ref       -- output information on each ref
  212. format-patch       -- prepare patches for e-mail submission
  213. fsck               -- verify connectivity and validity of objects in database
  214. gc                 -- cleanup unnecessary files and optimize local repository
  215. get-tar-commit-id  -- extract commit ID from an archive created using git archive
  216. grep               -- print lines matching a pattern
  217. gui                -- run portable graphical interface to git
  218. hash-object        -- compute object ID and optionally create a blob from a file
  219. help               -- display help information about git
  220. http-backend       -- run a server side implementation of Git over HTTP
  221. http-fetch         -- download from remote git repository via HTTP
  222. http-push          -- push objects over HTTP/DAV to another repository
  223. imap-send          -- send a collection of patches to an IMAP folder
  224. index-pack         -- build pack index file for an existing packed archive
  225. init               -- create empty git repository or re-initialize an existing one
  226. instaweb           -- instantly browse your working repository in gitweb
  227. log                -- show commit logs
  228. ls-files           -- information about files in index/working directory
  229. ls-remote          -- show references in a remote repository
  230. ls-tree            -- list contents of a tree object
  231. mailinfo           -- extract patch and authorship from a single email message
  232. mailsplit          -- split mbox file into a list of files
  233. merge              -- join two or more development histories together
  234. merge-base         -- find as good a common ancestor as possible for a merge
  235. merge-file         -- run a three-way file merge
  236. merge-index        -- run merge for files needing merging
  237. merge-one-file     -- standard helper-program to use with git merge-index
  238. merge-tree         -- show three-way merge without touching index
  239. mergetool          -- run merge conflict resolution tools to resolve merge conflicts
  240. mktag              -- create tag object
  241. mktree             -- build tree-object from git ls-tree formatted text
  242. mv                 -- move or rename file, directory, or symlink
  243. name-rev           -- find symbolic names for given revisions
  244. notes              -- add or inspect object notes
  245. pack-objects       -- create packed archive of objects
  246. pack-redundant     -- find redundant pack files
  247. pack-refs          -- pack heads and tags for efficient repository access
  248. parse-remote       -- routines to help parsing remote repository access parameters
  249. patch-id           -- compute unique ID for a patch
  250. prune              -- prune all unreachable objects from the object database
  251. prune-packed       -- remove extra objects that are already in pack files
  252. pull               -- fetch from and merge with another repository or local branch
  253. push               -- update remote refs along with associated objects
  254. quiltimport        -- apply a quilt patchset
  255. read-tree          -- read tree information into directory index
  256. rebase             -- forward-port local commits to the updated upstream head
  257. receive-pack       -- receive what is pushed into repository
  258. reflog             -- manage reflog information
  259. relink             -- hardlink common objects in local repositories
  260. remote             -- manage set of tracked repositories
  261. repack             -- pack unpacked objects in a repository
  262. replace            -- create, list, delete refs to replace objects
  263. request-pull       -- generate summary of pending changes
  264. rerere             -- reuse recorded resolution of conflicted merges
  265. reset              -- reset current HEAD to specified state
  266. rev-list           -- list commit object in reverse chronological order
  267. rev-parse          -- pick out and massage parameters for other git commands
  268. revert             -- revert existing commits
  269. rm                 -- remove files from the working tree and from the index
  270. send-email         -- send collection of patches as emails
  271. send-pack          -- push objects over git protocol to another repository
  272. shell              -- restricted login shell for GIT-only SSH access
  273. shortlog           -- summarize git log output
  274. show               -- show various types of objects
  275. show-branch        -- show branches and their commits
  276. show-index         -- show packed archive index
  277. show-ref           -- list references in a local repository
  278. stash              -- stash away changes to dirty working directory
  279. status             -- show working-tree status
  280. stripspace         -- filter out empty lines
  281. submodule          -- initialize, update, or inspect submodules
  282. svn                -- bidirectional operation between a Subversion repository and git
  283. symbolic-ref       -- read and modify symbolic references
  284. tag                -- create, list, delete or verify tag object signed with GPG
  285. unpack-file        -- create temporary file with blob's contents
  286. unpack-objects     -- unpack objects from packed archive
  287. update-index       -- register file contents in the working directory to the index
  288. update-ref         -- update object name stored in a reference safely
  289. update-server-info -- update auxiliary information file to help dumb servers
  290. upload-archive     -- send archive back to git-archive
  291. upload-pack        -- send objects packed back to git fetch-pack
  292. var                -- show git logical variable
  293. verify-commit      -- check GPG signature of commits
  294. verify-pack        -- validate packed git archive files
  295. verify-tag         -- check GPG signature of tags
  296. whatchanged        -- show commit-logs and differences they introduce
  297. write-tree         -- create tree from the current index
  298.  
  299. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:44:08]
  300.  
  301.  
  302. → git show-branch
  303. [master] First commit
  304.  
  305.  
  306.  
  307. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:44:20]
  308. → which vim
  309. /usr/bin/vim
  310.  
  311.  
  312.  1 Second commit
  313.  
  314. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:44:40]
  315. → which vi
  316. /usr/bin/vi
  317.  
  318. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:44:42]
  319. → vi
  320.  
  321. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:44:58]
  322. → vim
  323.  
  324. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:45:07]
  325. → git commit
  326. error: There was a problem with the editor 'vi'.
  327. Please supply the message using either -m or -F option.
  328.  
  329. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:45:21]
  330. → git config --global core.editor $(which vim)
  331.  
  332. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:46:54]
  333.  
  334.  
  335.  1 Second commit, thing are becoming serious :D
  336. → cat ~/.gitconfig
  337. [filter "lfs"]
  338.     clean = git-lfs clean %f
  339.     smudge = git-lfs smudge %f
  340.     required = true
  341. [user]
  342.     name = Fitri Wibowo
  343.     email = fitri.wibowo@icloud.com
  344. [core]
  345.     editor = /usr/bin/vim
  346.  
  347. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ✖︎ [19:47:03]
  348. → git commit
  349. [master 8419a8e] Second commit, thing are becoming serious :D
  350. 1 file changed, 1 insertion(+)
  351.  
  352. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/MyFirstRepo on git:master ● [19:47:28]
  353. → cd ..
  354.  
  355. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo [20:13:55]
  356. → ls
  357. MyFirstRepo
  358.  
  359. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo [20:13:55]
  360. → mkdir grocery
  361.  
  362. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo [20:14:01]
  363. → cd grocery
  364.  
  365. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery [20:14:02]
  366. → ls
  367.  
  368. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery [20:14:02]
  369. → git init
  370. Initialized empty Git repository in /Users/bowo/Documents/Repo/grocery/.git/
  371.  
  372. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [20:14:05]
  373. → echo "My shopoing list repository" > README.md
  374.  
  375. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ✖︎ [20:14:53]
  376. → vim README.mdc
  377.  
  378. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ✖︎ [20:15:06]
  379. → echo "My shopping list repository" > README.md
  380.  
  381. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ✖︎ [20:15:11]
  382. → cat README.md
  383. My shopping list repository
  384.  
  385. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ✖︎ [20:15:14]
  386. → echo "banana" > shoppingList.txt
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ✖︎ [20:15:34]
  394. → git add .
  395.  
  396. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ✖︎ [20:15:52]
  397. → git commit -m "Add banana to the shopping list"
  398. [master (root-commit) 1e24437] Add banana to the shopping list
  399. 2 files changed, 2 insertions(+)
  400. create mode 100644 README.md
  401. create mode 100644 shoppingList.txt
  402.  
  403.  
  404.  
  405. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [20:16:24]
  406. → git log
  407.  
  408. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [20:21:47]
  409. → git config user.name "parcox"
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [20:22:47]
  417. → git config user.email parcoxs@gmail.com
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [20:23:04]
  425. → git commit --amend --reset-author
  426. [master 6b57a08] Add banana to the shopping list
  427. 2 files changed, 2 insertions(+)
  428. create mode 100644 README.md
  429. create mode 100644 shoppingList.txt
  430.  
  431. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [20:23:41]
  432. → git log
  433.  
  434. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [20:23:56]
  435. → git log
  436.  
  437. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [20:43:23]
  438. → git log --format=fuller
  439.  
  440. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [20:44:53]
  441. → git log --format=raw
  442.  
  443. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:14:16]
  444.  
  445. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:14:16]
  446. → git cat-file -p 6b
  447. fatal: Not a valid object name 6b
  448.  
  449. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:14:25]
  450. → git cat-file -p 6b57a08
  451. tree a31c31cb8d7cc16eeae1d2c15e61ed7382cebf40
  452. author parcox <parcoxs@gmail.com> 1512221004 +0700
  453. committer parcox <parcoxs@gmail.com> 1512221004 +0700
  454.  
  455. Add banana to the shopping list
  456.  
  457. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:14:27]
  458. → git cat-file -p.
  459. error: unknown switch `.'
  460. usage: git cat-file (-t [--allow-unknown-type] | -s [--allow-unknown-type] | -e | -p | <type> | --textconv) <object>
  461.   or: git cat-file (--batch | --batch-check) [--follow-symlinks]
  462.  
  463. <type> can be one of: blob, tree, commit, tag
  464.    -t                    show object type
  465.    -s                    show object size
  466.    -e                    exit with zero when there's no error
  467.    -p                    pretty-print object's content
  468.    --textconv            for blob objects, run textconv on object's content
  469.    --allow-unknown-type  allow -s and -t to work with broken/corrupt objects
  470.    --buffer              buffer --batch output
  471.    --batch[=<format>]    show info and content of objects fed from the standard input
  472.    --batch-check[=<format>]
  473.                          show info about objects fed from the standard input
  474.    --follow-symlinks     follow in-tree symlinks (used with --batch or --batch-check)
  475.    --batch-all-objects   show all objects with --batch or --batch-check
  476.  
  477.  
  478. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:14:36]
  479. → git cat-file -p .
  480. fatal: Not a valid object name .
  481.  
  482. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:14:38]
  483. → git cat-file -p
  484. usage: git cat-file (-t [--allow-unknown-type] | -s [--allow-unknown-type] | -e | -p | <type> | --textconv) <object>
  485.   or: git cat-file (--batch | --batch-check) [--follow-symlinks]
  486.  
  487. <type> can be one of: blob, tree, commit, tag
  488.    -t                    show object type
  489.    -s                    show object size
  490.    -e                    exit with zero when there's no error
  491.    -p                    pretty-print object's content
  492.    --textconv            for blob objects, run textconv on object's content
  493.    --allow-unknown-type  allow -s and -t to work with broken/corrupt objects
  494.    --buffer              buffer --batch output
  495.    --batch[=<format>]    show info and content of objects fed from the standard input
  496.    --batch-check[=<format>]
  497.                          show info about objects fed from the standard input
  498.    --follow-symlinks     follow in-tree symlinks (used with --batch or --batch-check)
  499.    --batch-all-objects   show all objects with --batch or --batch-check
  500.  
  501.  
  502. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:14:39]
  503. → git cat-file -p 6b57a08
  504. tree a31c31cb8d7cc16eeae1d2c15e61ed7382cebf40
  505. author parcox <parcoxs@gmail.com> 1512221004 +0700
  506. committer parcox <parcoxs@gmail.com> 1512221004 +0700
  507.  
  508. Add banana to the shopping list
  509.  
  510. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:14:48]
  511. → git cat-file -p master
  512. tree a31c31cb8d7cc16eeae1d2c15e61ed7382cebf40
  513. author parcox <parcoxs@gmail.com> 1512221004 +0700
  514. committer parcox <parcoxs@gmail.com> 1512221004 +0700
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521. Add banana to the shopping list
  522.  
  523. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:15:02]
  524. → git cat-file tree HEAD
  525. 100644 README.md�{u�K|pq:y�k{/�1�}100644 shoppingList.txtcz   �j���r�k�O*�&ۂ%
  526.  
  527. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:15:33]
  528. → git status
  529. On branch master
  530. nothing to commit, working tree clean
  531.  
  532. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:15:55]
  533. → git log
  534.  
  535. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:16:05]
  536. → git cat-file -p a31c31
  537. 100644 blob 907b75b54b7c70713a79cc6b7b172fb131d3027d    README.md
  538. 100644 blob 637a09b86af61897fb72f26bfb874f2ae726db82    shoppingList.txt
  539.  
  540. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:16:27]
  541. → git cat-file -p 637a
  542. banana
  543.  
  544. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:17:15]
  545. → git cat-file -p 637a
  546.  
  547. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:18:22]
  548. → echo banana | git hash-object --stdin
  549. 637a09b86af61897fb72f26bfb874f2ae726db82
  550.  
  551. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [21:18:44]
  552. → ll
  553. total 16
  554. -rw-r--r--  1 bowo  staff    28B Dec  2 20:15 README.md
  555. -rw-r--r--  1 bowo  staff     7B Dec  2 20:15 shoppingList.txt
  556.  
  557. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:27:24]
  558. → alias
  559. -='cd -'
  560. ...=../..
  561. ....=../../..
  562. .....=../../../..
  563. ......=../../../../..
  564. 1='cd -'
  565. 2='cd -2'
  566. 3='cd -3'
  567. 4='cd -4'
  568. 5='cd -5'
  569. 6='cd -6'
  570. 7='cd -7'
  571. 8='cd -8'
  572. 9='cd -9'
  573. _=sudo
  574. afind='ack -il'
  575. colorize=colorize_via_pygmentize
  576. d='dirs -v | head -10'
  577. g=git
  578. ga='git add'
  579. gaa='git add --all'
  580. gapa='git add --patch'
  581. gau='git add --update'
  582. gb='git branch'
  583. gba='git branch -a'
  584. gbd='git branch -d'
  585. gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
  586. gbl='git blame -b -w'
  587. gbnm='git branch --no-merged'
  588. gbr='git branch --remote'
  589. gbs='git bisect'
  590. gbsb='git bisect bad'
  591. gbsg='git bisect good'
  592. gbsr='git bisect reset'
  593. gbss='git bisect start'
  594. gc='git commit -v'
  595. 'gc!'='git commit -v --amend'
  596. gca='git commit -v -a'
  597. 'gca!'='git commit -v -a --amend'
  598. gcam='git commit -a -m'
  599. 'gcan!'='git commit -v -a --no-edit --amend'
  600. 'gcans!'='git commit -v -a -s --no-edit --amend'
  601. gcb='git checkout -b'
  602. gcd='git checkout develop'
  603. gcf='git config --list'
  604. gcl='git clone --recursive'
  605. gclean='git clean -fd'
  606. gcm='git checkout master'
  607. gcmsg='git commit -m'
  608. 'gcn!'='git commit -v --no-edit --amend'
  609. gco='git checkout'
  610. gcount='git shortlog -sn'
  611. gcp='git cherry-pick'
  612. gcpa='git cherry-pick --abort'
  613. gcpc='git cherry-pick --continue'
  614. gcs='git commit -S'
  615. gcsm='git commit -s -m'
  616. gd='git diff'
  617. gdca='git diff --cached'
  618. gdct='git describe --tags `git rev-list --tags --max-count=1`'
  619. gdt='git diff-tree --no-commit-id --name-only -r'
  620. gdw='git diff --word-diff'
  621. gf='git fetch'
  622. gfa='git fetch --all --prune'
  623. gfo='git fetch origin'
  624. gg='git gui citool'
  625. gga='git gui citool --amend'
  626. ggpull='git pull origin $(git_current_branch)'
  627. ggpur=ggu
  628. ggpush='git push origin $(git_current_branch)'
  629. ggsup='git branch --set-upstream-to=origin/$(git_current_branch)'
  630. ghh='git help'
  631. gignore='git update-index --assume-unchanged'
  632. gignored='git ls-files -v | grep "^[[:lower:]]"'
  633. git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
  634. gk='\gitk --all --branches'
  635. gke='\gitk --all $(git log -g --pretty=%h)'
  636. gl='git pull'
  637. glg='git log --stat'
  638. glgg='git log --graph'
  639. glgga='git log --graph --decorate --all'
  640. glgm='git log --graph --max-count=10'
  641. glgp='git log --stat -p'
  642. glo='git log --oneline --decorate'
  643. globurl='noglob urlglobber '
  644. glog='git log --oneline --decorate --graph'
  645. gloga='git log --oneline --decorate --graph --all'
  646. glol='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit'
  647. glola='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --all'
  648. glp=_git_log_prettily
  649. glum='git pull upstream master'
  650. gm='git merge'
  651. gmom='git merge origin/master'
  652. gmt='git mergetool --no-prompt'
  653. gmtvim='git mergetool --no-prompt --tool=vimdiff'
  654. gmum='git merge upstream/master'
  655. gp='git push'
  656. gpd='git push --dry-run'
  657. gpoat='git push origin --all && git push origin --tags'
  658. gpristine='git reset --hard && git clean -dfx'
  659. gpsup='git push --set-upstream origin $(git_current_branch)'
  660. gpu='git push upstream'
  661. gpv='git push -v'
  662. gr='git remote'
  663. gra='git remote add'
  664. grb='git rebase'
  665. grba='git rebase --abort'
  666. grbc='git rebase --continue'
  667. grbi='git rebase -i'
  668. grbm='git rebase master'
  669. grbs='git rebase --skip'
  670. grep='grep  --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn}'
  671. grh='git reset HEAD'
  672. grhh='git reset HEAD --hard'
  673. grmv='git remote rename'
  674. grrm='git remote remove'
  675. grset='git remote set-url'
  676. grt='cd $(git rev-parse --show-toplevel || echo ".")'
  677. gru='git reset --'
  678. grup='git remote update'
  679. grv='git remote -v'
  680. gsb='git status -sb'
  681. gsd='git svn dcommit'
  682. gsi='git submodule init'
  683. gsps='git show --pretty=short --show-signature'
  684. gsr='git svn rebase'
  685. gss='git status -s'
  686. gst='git status'
  687. gsta='git stash save'
  688. gstaa='git stash apply'
  689. gstc='git stash clear'
  690. gstd='git stash drop'
  691. gstl='git stash list'
  692. gstp='git stash pop'
  693. gsts='git stash show --text'
  694. gsu='git submodule update'
  695. gts='git tag -s'
  696. gtv='git tag | sort -V'
  697. gunignore='git update-index --no-assume-unchanged'
  698. gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
  699. gup='git pull --rebase'
  700. gupv='git pull --rebase -v'
  701. gwch='git whatchanged -p --abbrev-commit --pretty=medium'
  702. gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify -m "--wip-- [skip ci]"'
  703. history='fc -l 1'
  704. l='ls -lah'
  705. la='ls -lAh'
  706. ll='ls -lh'
  707. ls='ls -G'
  708. lsa='ls -lah'
  709. md='mkdir -p'
  710. pip='noglob pip'
  711. please=sudo
  712. po=popd
  713. pu=pushd
  714. rd=rmdir
  715. run-help=man
  716. suroot='sudo -E -s'
  717. which-command=whence
  718.  
  719. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:27:36]
  720. → ll .git
  721. total 40
  722. -rw-r--r--  1 bowo  staff   292B Dec  2 20:23 COMMIT_EDITMSG
  723. -rw-r--r--  1 bowo  staff    23B Dec  2 20:14 HEAD
  724. drwxr-xr-x  2 bowo  staff    68B Dec  2 20:14 branches
  725. -rw-r--r--  1 bowo  staff   167B Dec  2 20:23 config
  726. -rw-r--r--  1 bowo  staff    73B Dec  2 20:14 description
  727. drwxr-xr-x  2 bowo  staff   408B Dec  2 20:14 hooks
  728. -rw-r--r--  1 bowo  staff   217B Dec  2 20:16 index
  729. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:14 info
  730. drwxr-xr-x  3 bowo  staff   136B Dec  2 20:16 logs
  731. drwxr-xr-x  9 bowo  staff   306B Dec  2 20:23 objects
  732. drwxr-xr-x  4 bowo  staff   136B Dec  2 20:14 refs
  733.  
  734. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:28:18]
  735. → ll .git/objects
  736. total 0
  737. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:16 1e
  738. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:15 63
  739. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:23 6b
  740. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:15 90
  741. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:16 a3
  742. drwxr-xr-x  2 bowo  staff    68B Dec  2 20:14 info
  743. drwxr-xr-x  2 bowo  staff    68B Dec  2 20:14 pack
  744.  
  745. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:28:29]
  746. → ll .git/objects/a3
  747.  
  748.  
  749.  
  750.  
  751.  
  752. total 8
  753. -r--r--r--  1 bowo  staff    93B Dec  2 20:16 1c31cb8d7cc16eeae1d2c15e61ed7382cebf40
  754.  
  755. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:28:54]
  756. → ll .git/objects/63
  757. total 8
  758. -r--r--r--  1 bowo  staff    20B Dec  2 20:15 7a09b86af61897fb72f26bfb874f2ae726db82
  759.  
  760. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:29:17]
  761. → git cat-file -p 637a
  762. banana
  763.  
  764. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:30:26]
  765. → ll .git/objects/
  766. total 0
  767. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:16 1e
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:15 63
  776. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:23 6b
  777. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:15 90
  778.  
  779.  
  780.  
  781.  
  782.  
  783. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:16 a3
  784. drwxr-xr-x  2 bowo  staff    68B Dec  2 20:14 info
  785. drwxr-xr-x  2 bowo  staff    68B Dec  2 20:14 pack
  786.  
  787. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:31:06]
  788. → git log
  789.  
  790. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:31:30]
  791. → git status
  792. On branch master
  793. nothing to commit, working tree clean
  794.  
  795. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:31:40]
  796. → git cat-file -p master
  797. tree a31c31cb8d7cc16eeae1d2c15e61ed7382cebf40
  798. author parcox <parcoxs@gmail.com> 1512221004 +0700
  799. committer parcox <parcoxs@gmail.com> 1512221004 +0700
  800.  
  801. Add banana to the shopping list
  802.  
  803. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:31:46]
  804. → git log --format=fuller
  805.  
  806. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:32:14]
  807. → git log
  808.  
  809. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:32:26]
  810. → ll .git/objects/
  811. total 0
  812. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:16 1e
  813. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:15 63
  814. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:23 6b
  815. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:15 90
  816. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:16 a3
  817. drwxr-xr-x  2 bowo  staff    68B Dec  2 20:14 info
  818. drwxr-xr-x  2 bowo  staff    68B Dec  2 20:14 pack
  819.  
  820. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:32:28]
  821. → git cat-file -p master
  822. tree a31c31cb8d7cc16eeae1d2c15e61ed7382cebf40
  823. author parcox <parcoxs@gmail.com> 1512221004 +0700
  824. committer parcox <parcoxs@gmail.com> 1512221004 +0700
  825.  
  826. Add banana to the shopping list
  827.  
  828. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:32:39]
  829. → git cat-file -p 6b57a08
  830. tree a31c31cb8d7cc16eeae1d2c15e61ed7382cebf40
  831. author parcox <parcoxs@gmail.com> 1512221004 +0700
  832. committer parcox <parcoxs@gmail.com> 1512221004 +0700
  833.  
  834. Add banana to the shopping list
  835.  
  836. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:33:00]
  837. → git cat-file -p 6b57a08
  838. tree a31c31cb8d7cc16eeae1d2c15e61ed7382cebf40
  839. author parcox <parcoxs@gmail.com> 1512221004 +0700
  840. committer parcox <parcoxs@gmail.com> 1512221004 +0700
  841.  
  842. Add banana to the shopping list
  843.  
  844. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:33:41]
  845. → ll .git/objects/
  846. total 0
  847. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:16 1e
  848. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:15 63
  849. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:23 6b
  850. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:15 90
  851. drwxr-xr-x  2 bowo  staff   102B Dec  2 20:16 a3
  852. drwxr-xr-x  2 bowo  staff    68B Dec  2 20:14 info
  853. drwxr-xr-x  2 bowo  staff    68B Dec  2 20:14 pack
  854.  
  855. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:34:30]
  856. → ll .git/objects/a3
  857. total 8
  858. -r--r--r--  1 bowo  staff    93B Dec  2 20:16 1c31cb8d7cc16eeae1d2c15e61ed7382cebf40
  859.  
  860. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:34:33]
  861. → cat .git/objects/a3/1c31cb8d7cc16eeae1d2c15e61ed7382cebf40
  862. x+)JMU�0d040031rut�u��Ma�P]�ջ��Ъ�Lv���F��L�PE���y�>��%z%%
  863.                                                         �U�;��IL�]�)�w���s��M)�!�%
  864.  
  865. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:34:43]
  866. → ll .git/objects/a3
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878. total 8
  879. -r--r--r--  1 bowo  staff    93B Dec  2 20:16 1c31cb8d7cc16eeae1d2c15e61ed7382cebf40
  880.  
  881.  
  882.  
  883. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:34:47]
  884. → git cat-file -p 1c31
  885. fatal: Not a valid object name 1c31
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:35:26]
  899. → git cat-file -p a31c31
  900.  
  901.  
  902. 100644 blob 907b75b54b7c70713a79cc6b7b172fb131d3027d    README.md
  903. 100644 blob 637a09b86af61897fb72f26bfb874f2ae726db82    shoppingList.txt
  904.  
  905. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:35:41]
  906. → echo apple >> shoppingList.txt
  907.  
  908. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ✖︎ [9:36:33]
  909. → git add shoppingList.txt
  910.  
  911. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ✖︎ [9:36:42]
  912. → git commit -m "Add an apple"
  913. [master 5fd024c] Add an apple
  914. 1 file changed, 1 insertion(+)
  915.  
  916. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:36:53]
  917. → git log
  918.  
  919. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:37:11]
  920. → git log --oneline
  921.  
  922. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:37:20]
  923. → git log
  924.  
  925. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:37:24]
  926. → git log --oneline
  927.  
  928. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:37:47]
  929. → git cat-file -p mastetr
  930. fatal: Not a valid object name mastetr
  931.  
  932. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:37:55]
  933. → git cat-file -p master
  934. tree 4c931e9fd8ca4581ddd5de9efd45daf0e5c300a0
  935. parent 6b57a080f4ba040967bc3a79e0f5dd0bf6dcc4f2
  936. author parcox <parcoxs@gmail.com> 1512268613 +0700
  937. committer parcox <parcoxs@gmail.com> 1512268613 +0700
  938.  
  939. Add an apple
  940.  
  941. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:37:57]
  942. → git cat-file -p 5fd024c
  943. tree 4c931e9fd8ca4581ddd5de9efd45daf0e5c300a0
  944. parent 6b57a080f4ba040967bc3a79e0f5dd0bf6dcc4f2
  945. author parcox <parcoxs@gmail.com> 1512268613 +0700
  946. committer parcox <parcoxs@gmail.com> 1512268613 +0700
  947.  
  948. Add an apple
  949.  
  950. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:38:31]
  951. → git cat-file -p 6b57a08
  952. tree a31c31cb8d7cc16eeae1d2c15e61ed7382cebf40
  953. author parcox <parcoxs@gmail.com> 1512221004 +0700
  954. committer parcox <parcoxs@gmail.com> 1512221004 +0700
  955.  
  956. Add banana to the shopping list
  957.  
  958. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:39:42]
  959. → git cat-file -p master
  960. tree 4c931e9fd8ca4581ddd5de9efd45daf0e5c300a0
  961. parent 6b57a080f4ba040967bc3a79e0f5dd0bf6dcc4f2
  962. author parcox <parcoxs@gmail.com> 1512268613 +0700
  963. committer parcox <parcoxs@gmail.com> 1512268613 +0700
  964.  
  965. Add an apple
  966.  
  967. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:40:57]
  968. → git log --oneline
  969.  
  970. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:42:24]
  971. → git cat-file -p a31c
  972. 100644 blob 907b75b54b7c70713a79cc6b7b172fb131d3027d    README.md
  973. 100644 blob 637a09b86af61897fb72f26bfb874f2ae726db82    shoppingList.txt
  974.  
  975. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:54:19]
  976. → git cat-file -p 4c93
  977. 100644 blob 907b75b54b7c70713a79cc6b7b172fb131d3027d    README.md
  978. 100644 blob e4ceb844d94edba245ba12246d3eb6d9d3aba504    shoppingList.txt
  979.  
  980. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [9:54:36]
  981. → git log --oneline --graph --decorate
  982.  
  983. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:06:23]
  984. → git log --oneline --graph --decorate
  985.  
  986. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:07:59]
  987. → git config --global core.pager $(
  988.  
  989. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:08:27]
  990. → history| grep config
  991.  236  ifconfig
  992.  828  ps ax | grep configd
  993.  862  ifconfig
  994. 1283  curl ifconfig.me
  995. 1308* fit config
  996. 1309* git config
  997. 1310* cat ~/.gitconfig
  998. 1311* git config --global user.name "Fitri Wibowo"
  999. 1312* git config --global user.email "fitri.wibowo@icloud.com"
  1000. 1313* cat ~/.gitconfig
  1001. 1345  git config --global core.editor $(which vim)
  1002. 1346  cat ~/.gitconfig
  1003. 1361  git config user.name "parcox"
  1004. 1362  git config user.email parcoxs@gmail.com
  1005.  
  1006. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:08:34]
  1007. → git config --global core.pager $(which cat)
  1008.  
  1009. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:08:54]
  1010. → git log --oneline --graph --decorate
  1011. * 5fd024c (HEAD -> master) Add an apple
  1012. * 6b57a08 Add banana to the shopping list
  1013.  
  1014. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:08:57]
  1015. → echo orange >> shoppingList.txt
  1016.  
  1017. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ✖︎ [10:16:09]
  1018. → git -am "Add an orange"
  1019. Unknown option: -am
  1020. usage: git [--version] [--help] [-C <path>] [-c name=value]
  1021.           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
  1022.           [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
  1023.           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
  1024.           <command> [<args>]
  1025.  
  1026. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ✖︎ [10:16:32]
  1027. → git commit -am "Add an orange"
  1028. [master b17d9bb] Add an orange
  1029. 1 file changed, 1 insertion(+)
  1030.  
  1031. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:16:42]
  1032. → git log --oneline --graph --decorate
  1033. * b17d9bb (HEAD -> master) Add an orange
  1034. * 5fd024c Add an apple
  1035. * 6b57a08 Add banana to the shopping list
  1036.  
  1037. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:16:50]
  1038. → git log  --graph --decorate
  1039. * commit b17d9bb8547c8f7e789cc118c64ede065faea8ae (HEAD -> master)
  1040. | Author: parcox <parcoxs@gmail.com>
  1041. | Date:   Sun Dec 3 10:16:42 2017 +0700
  1042. |
  1043. |     Add an orange
  1044. |
  1045. * commit 5fd024c20ca6428ce1c904b677c920e3f70e370e
  1046. | Author: parcox <parcoxs@gmail.com>
  1047. | Date:   Sun Dec 3 09:36:53 2017 +0700
  1048. |
  1049. |     Add an apple
  1050. |
  1051. * commit 6b57a080f4ba040967bc3a79e0f5dd0bf6dcc4f2
  1052.  Author: parcox <parcoxs@gmail.com>
  1053.  Date:   Sat Dec 2 20:23:24 2017 +0700
  1054.  
  1055.      Add banana to the shopping list
  1056.  
  1057. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:26:13]
  1058. → ls .git/refs/heads
  1059. master
  1060.  
  1061. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:26:45]
  1062. → ls .git/refs/heads/master
  1063. .git/refs/heads/master
  1064.  
  1065. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:26:48]
  1066. → cat .git/refs/heads/master
  1067. b17d9bb8547c8f7e789cc118c64ede065faea8ae
  1068.  
  1069. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:26:53]
  1070. → git branch berries
  1071.  
  1072. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:27:45]
  1073. → alias | grep online
  1074.  
  1075. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:28:25]
  1076. → alias | grep decorate
  1077. glgga='git log --graph --decorate --all'
  1078. glo='git log --oneline --decorate'
  1079. glog='git log --oneline --decorate --graph'
  1080. gloga='git log --oneline --decorate --graph --all'
  1081.  
  1082. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:28:34]
  1083. → glog
  1084. * b17d9bb (HEAD -> master, berries) Add an orange
  1085. * 5fd024c Add an apple
  1086. * 6b57a08 Add banana to the shopping list
  1087.  
  1088. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:28:47]
  1089. → gloga
  1090. * b17d9bb (HEAD -> master, berries) Add an orange
  1091. * 5fd024c Add an apple
  1092. * 6b57a08 Add banana to the shopping list
  1093.  
  1094. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:28:53]
  1095. → git checkout berries
  1096. Switched to branch 'berries'
  1097.  
  1098. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:31:49]
  1099. → glog
  1100. * b17d9bb (HEAD -> berries, master) Add an orange
  1101. * 5fd024c Add an apple
  1102. * 6b57a08 Add banana to the shopping list
  1103.  
  1104. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:31:54]
  1105. → git cat-file -p HEAD
  1106. tree 3f8d9e63d85074eb94fc295c117e9c4b5285712c
  1107. parent 5fd024c20ca6428ce1c904b677c920e3f70e370e
  1108. author parcox <parcoxs@gmail.com> 1512271002 +0700
  1109. committer parcox <parcoxs@gmail.com> 1512271002 +0700
  1110.  
  1111. Add an orange
  1112.  
  1113. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:32:59]
  1114. → cat .git/HEAD
  1115. ref: refs/heads/berries
  1116.  
  1117. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:33:05]
  1118. → ll .git
  1119. total 40
  1120. -rw-r--r--   1 bowo  staff    14B Dec  3 10:16 COMMIT_EDITMSG
  1121. -rw-r--r--   1 bowo  staff    24B Dec  3 10:31 HEAD
  1122. drwxr-xr-x   2 bowo  staff    68B Dec  2 20:14 branches
  1123. -rw-r--r--   1 bowo  staff   167B Dec  2 20:23 config
  1124. -rw-r--r--   1 bowo  staff    73B Dec  2 20:14 description
  1125. drwxr-xr-x   2 bowo  staff   408B Dec  2 20:14 hooks
  1126. -rw-r--r--   1 bowo  staff   217B Dec  3 10:31 index
  1127. drwxr-xr-x   2 bowo  staff   102B Dec  2 20:14 info
  1128. drwxr-xr-x   3 bowo  staff   136B Dec  2 20:16 logs
  1129. drwxr-xr-x  15 bowo  staff   510B Dec  3 10:16 objects
  1130. drwxr-xr-x   4 bowo  staff   136B Dec  2 20:14 refs
  1131.  
  1132. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:33:15]
  1133. → echo blackberry >> shoppingList.txt
  1134.  
  1135. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ✖︎ [10:34:03]
  1136. → git commit -am "Add a blackberry"
  1137. [berries 67e7d5a] Add a blackberry
  1138. 1 file changed, 1 insertion(+)
  1139.  
  1140. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:34:18]
  1141. → git log --oneline --graph --decorate
  1142. * 67e7d5a (HEAD -> berries) Add a blackberry
  1143. * b17d9bb (master) Add an orange
  1144. * 5fd024c Add an apple
  1145. * 6b57a08 Add banana to the shopping list
  1146.  
  1147. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:34:36]
  1148. → cat shoppingList.txt
  1149. banana
  1150. apple
  1151. orange
  1152. blackberry
  1153.  
  1154. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:35:45]
  1155. → git checkout master
  1156. Switched to branch 'master'
  1157.  
  1158. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:35:56]
  1159. → cat shoppingList.txt
  1160. banana
  1161. apple
  1162. orange
  1163.  
  1164. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:35:58]
  1165. → git checkout berries
  1166. Switched to branch 'berries'
  1167.  
  1168. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:36:30]
  1169. → git checkout master
  1170. Switched to branch 'master'
  1171.  
  1172. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:36:38]
  1173. → git log --oneline --graph --devorate
  1174. fatal: unrecognized argument: --devorate
  1175.  
  1176. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:38:30]
  1177. → git log --oneline --graph --decorate
  1178. * b17d9bb (HEAD -> master) Add an orange
  1179. * 5fd024c Add an apple
  1180. * 6b57a08 Add banana to the shopping list
  1181.  
  1182. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:38:34]
  1183. → git log --oneline --graph --decorate --all
  1184. * 67e7d5a (berries) Add a blackberry
  1185. * b17d9bb (HEAD -> master) Add an orange
  1186. * 5fd024c Add an apple
  1187. * 6b57a08 Add banana to the shopping list
  1188.  
  1189. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:38:50]
  1190. → git checkout -
  1191. Switched to branch 'berries'
  1192.  
  1193. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:40:23]
  1194. → git reset --hard master
  1195. HEAD is now at b17d9bb Add an orange
  1196.  
  1197. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:43:35]
  1198. → git --graph --online --decorate
  1199. Unknown option: --graph
  1200. usage: git [--version] [--help] [-C <path>] [-c name=value]
  1201.           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
  1202.           [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
  1203.           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
  1204.           <command> [<args>]
  1205.  
  1206. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:43:48]
  1207. → git --graph --oneline --decorate
  1208. Unknown option: --graph
  1209. usage: git [--version] [--help] [-C <path>] [-c name=value]
  1210.           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
  1211.           [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
  1212.           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
  1213.           <command> [<args>]
  1214.  
  1215. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:43:51]
  1216. → git log --graph --oneline --decorate
  1217. * b17d9bb (HEAD -> berries, master) Add an orange
  1218. * 5fd024c Add an apple
  1219. * 6b57a08 Add banana to the shopping list
  1220.  
  1221. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:43:56]
  1222. → git log --graph --oneline --decorate --all
  1223. * b17d9bb (HEAD -> berries, master) Add an orange
  1224. * 5fd024c Add an apple
  1225. * 6b57a08 Add banana to the shopping list
  1226.  
  1227. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:44:14]
  1228. → git checkout -
  1229. Switched to branch 'master'
  1230.  
  1231. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:44:20]
  1232. → git log --graph --oneline --decorate --all
  1233. * b17d9bb (HEAD -> master, berries) Add an orange
  1234. * 5fd024c Add an apple
  1235. * 6b57a08 Add banana to the shopping list
  1236.  
  1237. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:44:22]
  1238. → cat .git/refs/heads/berries
  1239. b17d9bb8547c8f7e789cc118c64ede065faea8ae
  1240.  
  1241. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:44:44]
  1242. → cat .git/refs/heads/master
  1243. b17d9bb8547c8f7e789cc118c64ede065faea8ae
  1244.  
  1245. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:44:46]
  1246. → git checkout -
  1247. Switched to branch 'berries'
  1248.  
  1249. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:45:01]
  1250. → git reset --hard 67e7d5a
  1251. HEAD is now at 67e7d5a Add a blackberry
  1252.  
  1253. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:45:44]
  1254. → git log --graph --oneline --decorate --all
  1255. * 67e7d5a (HEAD -> berries) Add a blackberry
  1256. * b17d9bb (master) Add an orange
  1257. * 5fd024c Add an apple
  1258. * 6b57a08 Add banana to the shopping list
  1259.  
  1260. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:45:51]
  1261. → git checkout -
  1262. Switched to branch 'master'
  1263.  
  1264. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:45:58]
  1265. → git log --graph --oneline --decorate --all
  1266. * 67e7d5a (berries) Add a blackberry
  1267. * b17d9bb (HEAD -> master) Add an orange
  1268. * 5fd024c Add an apple
  1269. * 6b57a08 Add banana to the shopping list
  1270.  
  1271. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:46:01]
  1272. → ls .git/branches
  1273.  
  1274. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:46:34]
  1275. → ll .git/objects/info
  1276.  
  1277. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:47:01]
  1278. → ll .git/logs
  1279. total 8
  1280. -rw-r--r--  1 bowo  staff   2.4K Dec  3 10:45 HEAD
  1281. drwxr-xr-x  3 bowo  staff   102B Dec  2 20:16 refs
  1282.  
  1283. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:47:10]
  1284. → ll .git/logs/HEAD
  1285. -rw-r--r--  1 bowo  staff   2.4K Dec  3 10:45 .git/logs/HEAD
  1286.  
  1287. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:47:15]
  1288. → git checkout -
  1289. Switched to branch 'berries'
  1290.  
  1291. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:47:46]
  1292. → echo watermelon >> shoppingList.txt
  1293.  
  1294. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ✖︎ [10:47:53]
  1295. → git commit -am "Add a watermelon"
  1296. [berries 649f55c] Add a watermelon
  1297. 1 file changed, 1 insertion(+)
  1298.  
  1299. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:48:04]
  1300. → gloga
  1301. * 649f55c (HEAD -> berries) Add a watermelon
  1302. * 67e7d5a Add a blackberry
  1303. * b17d9bb (master) Add an orange
  1304. * 5fd024c Add an apple
  1305. * 6b57a08 Add banana to the shopping list
  1306.  
  1307. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:48:10]
  1308. → git branch melon
  1309.  
  1310. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:48:22]
  1311. → gloga
  1312. * 649f55c (HEAD -> berries, melon) Add a watermelon
  1313. * 67e7d5a Add a blackberry
  1314. * b17d9bb (master) Add an orange
  1315. * 5fd024c Add an apple
  1316. * 6b57a08 Add banana to the shopping list
  1317.  
  1318. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:48:27]
  1319. → git reset --hard HEAD^
  1320. HEAD is now at 67e7d5a Add a blackberry
  1321.  
  1322. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:49:32]
  1323. → gloga
  1324. * 649f55c (melon) Add a watermelon
  1325. * 67e7d5a (HEAD -> berries) Add a blackberry
  1326. * b17d9bb (master) Add an orange
  1327. * 5fd024c Add an apple
  1328. * 6b57a08 Add banana to the shopping list
  1329.  
  1330. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:49:36]
  1331. → cat shoppingList.txt
  1332. banana
  1333. apple
  1334. orange
  1335. blackberry
  1336.  
  1337. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:berries ● [10:50:38]
  1338. → git checkout master
  1339. Switched to branch 'master'
  1340.  
  1341. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:50:54]
  1342. → cat shoppingList.txt
  1343. banana
  1344. apple
  1345. orange
  1346.  
  1347. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [10:50:57]
  1348. → git hist
  1349. git: 'hist' is not a git command. See 'git --help'.
  1350.  
  1351. Did you mean this?
  1352.     bisect
  1353.  
  1354. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [12:50:39]
  1355. → git log
  1356. commit b17d9bb8547c8f7e789cc118c64ede065faea8ae
  1357. Author: parcox <parcoxs@gmail.com>
  1358. Date:   Sun Dec 3 10:16:42 2017 +0700
  1359.  
  1360.    Add an orange
  1361.  
  1362. commit 5fd024c20ca6428ce1c904b677c920e3f70e370e
  1363. Author: parcox <parcoxs@gmail.com>
  1364. Date:   Sun Dec 3 09:36:53 2017 +0700
  1365.  
  1366.    Add an apple
  1367.  
  1368. commit 6b57a080f4ba040967bc3a79e0f5dd0bf6dcc4f2
  1369. Author: parcox <parcoxs@gmail.com>
  1370. Date:   Sat Dec 2 20:23:24 2017 +0700
  1371.  
  1372.    Add banana to the shopping list
  1373.  
  1374. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [12:50:44]
  1375. → glog
  1376. * b17d9bb (HEAD -> master) Add an orange
  1377. * 5fd024c Add an apple
  1378. * 6b57a08 Add banana to the shopping list
  1379.  
  1380. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [12:50:48]
  1381. → gloga
  1382. * 649f55c (melon) Add a watermelon
  1383. * 67e7d5a (berries) Add a blackberry
  1384. * b17d9bb (HEAD -> master) Add an orange
  1385. * 5fd024c Add an apple
  1386. * 6b57a08 Add banana to the shopping list
  1387.  
  1388. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [12:50:52]
  1389. → git chek melons
  1390. git: 'chek' is not a git command. See 'git --help'.
  1391.  
  1392. Did you mean one of these?
  1393.     checkout
  1394.     cherry
  1395.  
  1396. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [12:51:03]
  1397. → git check melons
  1398. git: 'check' is not a git command. See 'git --help'.
  1399.  
  1400. Did you mean one of these?
  1401.     checkout
  1402.     check-attr
  1403.     cherry
  1404.  
  1405. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [12:51:08]
  1406. → git checkout melons
  1407. error: pathspec 'melons' did not match any file(s) known to git.
  1408.  
  1409. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [12:51:12]
  1410. → git checkout melon
  1411. Switched to branch 'melon'
  1412.  
  1413. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:melon ● [12:51:18]
  1414. → git rename
  1415. git: 'rename' is not a git command. See 'git --help'.
  1416.  
  1417. Did you mean this?
  1418.     rebase
  1419.  
  1420. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:melon ● [12:51:38]
  1421. → git branch -m melons
  1422.  
  1423. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:melons ● [12:52:47]
  1424. → cat shoppingList.txt
  1425. banana
  1426. apple
  1427. orange
  1428. blackberry
  1429. watermelon
  1430.  
  1431. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:melons ● [12:52:55]
  1432. → git checkout -
  1433. Switched to branch 'master'
  1434.  
  1435. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [12:53:50]
  1436. → glog
  1437. * b17d9bb (HEAD -> master) Add an orange
  1438. * 5fd024c Add an apple
  1439. * 6b57a08 Add banana to the shopping list
  1440.  
  1441. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [12:56:51]
  1442. → alias | grep decorateac
  1443.  
  1444. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [12:57:02]
  1445. → gloga
  1446. * 649f55c (melons) Add a watermelon
  1447. * 67e7d5a (berries) Add a blackberry
  1448. * b17d9bb (HEAD -> master) Add an orange
  1449. * 5fd024c Add an apple
  1450. * 6b57a08 Add banana to the shopping list
  1451.  
  1452. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [12:57:04]
  1453. → git checkout HEAD~1
  1454. Note: checking out 'HEAD~1'.
  1455.  
  1456. You are in 'detached HEAD' state. You can look around, make experimental
  1457. changes and commit them, and you can discard any commits you make in this
  1458. state without impacting any branches by performing another checkout.
  1459.  
  1460. If you want to create a new branch to retain commits you create, you may
  1461. do so (now or later) by using -b with the checkout command again. Example:
  1462.  
  1463.  git checkout -b <new-branch-name>
  1464.  
  1465. HEAD is now at 5fd024c... Add an apple
  1466.  
  1467. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:5fd024c ● [12:59:24]
  1468. → gloga
  1469. * 649f55c (melons) Add a watermelon
  1470. * 67e7d5a (berries) Add a blackberry
  1471. * b17d9bb (master) Add an orange
  1472. * 5fd024c (HEAD) Add an apple
  1473. * 6b57a08 Add banana to the shopping list
  1474.  
  1475. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:5fd024c ● [12:59:35]
  1476. → cat .git/HEAD
  1477. 5fd024c20ca6428ce1c904b677c920e3f70e370e
  1478.  
  1479. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:5fd024c ● [13:00:40]
  1480. → echo but > shoppingList.txt
  1481.  
  1482. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:5fd024c ✖︎ [13:01:04]
  1483. → echo bug > shoppingList.txt
  1484.  
  1485. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:5fd024c ✖︎ [13:01:12]
  1486. → git commit -am "Bug eats all the fruits"
  1487. [detached HEAD ab3a446] Bug eats all the fruits
  1488. 1 file changed, 1 insertion(+), 2 deletions(-)
  1489.  
  1490. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:ab3a446 ● [13:01:32]
  1491. → cat shoppingList.txt
  1492. bug
  1493.  
  1494. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:ab3a446 ● [13:01:49]
  1495. → glog
  1496. * ab3a446 (HEAD) Bug eats all the fruits
  1497. * 5fd024c Add an apple
  1498. * 6b57a08 Add banana to the shopping list
  1499.  
  1500. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:ab3a446 ● [13:01:58]
  1501. → gloga
  1502. * ab3a446 (HEAD) Bug eats all the fruits
  1503. | * 649f55c (melons) Add a watermelon
  1504. | * 67e7d5a (berries) Add a blackberry
  1505. | * b17d9bb (master) Add an orange
  1506. |/
  1507. * 5fd024c Add an apple
  1508. * 6b57a08 Add banana to the shopping list
  1509.  
  1510. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:ab3a446 ● [13:02:00]
  1511. → git checkout master
  1512. Warning: you are leaving 1 commit behind, not connected to
  1513. any of your branches:
  1514.  
  1515.  ab3a446 Bug eats all the fruits
  1516.  
  1517. If you want to keep it by creating a new branch, this may be a good time
  1518. to do so with:
  1519.  
  1520. git branch <new-branch-name> ab3a446
  1521.  
  1522. Switched to branch 'master'
  1523.  
  1524. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [13:02:43]
  1525. → gloga
  1526. * 649f55c (melons) Add a watermelon
  1527. * 67e7d5a (berries) Add a blackberry
  1528. * b17d9bb (HEAD -> master) Add an orange
  1529. * 5fd024c Add an apple
  1530. * 6b57a08 Add banana to the shopping list
  1531.  
  1532. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [13:03:07]
  1533. → cat shoppingList.txt
  1534. banana
  1535. apple
  1536. orange
  1537.  
  1538. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [13:03:16]
  1539. → git branch bug ab3a446
  1540.  
  1541. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [13:04:08]
  1542. → gloga
  1543. * ab3a446 (bug) Bug eats all the fruits
  1544. | * 649f55c (melons) Add a watermelon
  1545. | * 67e7d5a (berries) Add a blackberry
  1546. | * b17d9bb (HEAD -> master) Add an orange
  1547. |/
  1548. * 5fd024c Add an apple
  1549. * 6b57a08 Add banana to the shopping list
  1550.  
  1551. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [13:04:18]
  1552. → git reflog show
  1553. b17d9bb HEAD@{0}: checkout: moving from ab3a446dd1372089cc0f404c72aa488f6463cd42 to master
  1554. ab3a446 HEAD@{1}: commit: Bug eats all the fruits
  1555. 5fd024c HEAD@{2}: checkout: moving from master to HEAD~1
  1556. b17d9bb HEAD@{3}: checkout: moving from melons to master
  1557. 649f55c HEAD@{4}:
  1558. 649f55c HEAD@{5}: checkout: moving from master to melon
  1559. b17d9bb HEAD@{6}: checkout: moving from berries to master
  1560. 67e7d5a HEAD@{7}: reset: moving to HEAD^
  1561. 649f55c HEAD@{8}: commit: Add a watermelon
  1562. 67e7d5a HEAD@{9}: checkout: moving from master to berries
  1563. b17d9bb HEAD@{10}: checkout: moving from berries to master
  1564. 67e7d5a HEAD@{11}: reset: moving to 67e7d5a
  1565. b17d9bb HEAD@{12}: checkout: moving from master to berries
  1566. b17d9bb HEAD@{13}: checkout: moving from berries to master
  1567. b17d9bb HEAD@{14}: reset: moving to master
  1568. 67e7d5a HEAD@{15}: checkout: moving from master to berries
  1569. b17d9bb HEAD@{16}: checkout: moving from berries to master
  1570. 67e7d5a HEAD@{17}: checkout: moving from master to berries
  1571. b17d9bb HEAD@{18}: checkout: moving from berries to master
  1572. 67e7d5a HEAD@{19}: commit: Add a blackberry
  1573. b17d9bb HEAD@{20}: checkout: moving from master to berries
  1574. b17d9bb HEAD@{21}: commit: Add an orange
  1575. 5fd024c HEAD@{22}: commit: Add an apple
  1576. 6b57a08 HEAD@{23}: commit (amend): Add banana to the shopping list
  1577. 1e24437 HEAD@{24}: commit (initial): Add banana to the shopping list
  1578.  
  1579. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [13:05:01]
  1580. → git reflog berries
  1581. 67e7d5a berries@{0}: reset: moving to HEAD^
  1582. 649f55c berries@{1}: commit: Add a watermelon
  1583. 67e7d5a berries@{2}: reset: moving to 67e7d5a
  1584. b17d9bb berries@{3}: reset: moving to master
  1585. 67e7d5a berries@{4}: commit: Add a blackberry
  1586. b17d9bb berries@{5}: branch: Created from master
  1587.  
  1588. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:master ● [13:06:03]
  1589. → git checkout bug
  1590. Switched to branch 'bug'
  1591.  
  1592. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:06:51]
  1593. → gloga
  1594. * ab3a446 (HEAD -> bug) Bug eats all the fruits
  1595. | * 649f55c (melons) Add a watermelon
  1596. | * 67e7d5a (berries) Add a blackberry
  1597. | * b17d9bb (master) Add an orange
  1598. |/
  1599. * 5fd024c Add an apple
  1600. * 6b57a08 Add banana to the shopping list
  1601.  
  1602. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:07:08]
  1603. → git tag bugTag
  1604.  
  1605. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:07:17]
  1606. → gloga
  1607. * ab3a446 (HEAD -> bug, tag: bugTag) Bug eats all the fruits
  1608. | * 649f55c (melons) Add a watermelon
  1609. | * 67e7d5a (berries) Add a blackberry
  1610. | * b17d9bb (master) Add an orange
  1611. |/
  1612. * 5fd024c Add an apple
  1613. * 6b57a08 Add banana to the shopping list
  1614.  
  1615. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:07:19]
  1616. → echo another bug >> shoppingList.txt
  1617.  
  1618. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ✖︎ [13:07:37]
  1619. → git commit -am "Another bug!"
  1620. dquote>
  1621.  
  1622. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ✖︎ [13:07:57]
  1623. → git commit -am "Another bug\!"
  1624. [bug 315bac1] Another bug!
  1625. 1 file changed, 1 insertion(+)
  1626.  
  1627. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:08:02]
  1628. → gloga
  1629. * 315bac1 (HEAD -> bug) Another bug!
  1630. * ab3a446 (tag: bugTag) Bug eats all the fruits
  1631. | * 649f55c (melons) Add a watermelon
  1632. | * 67e7d5a (berries) Add a blackberry
  1633. | * b17d9bb (master) Add an orange
  1634. |/
  1635. * 5fd024c Add an apple
  1636. * 6b57a08 Add banana to the shopping list
  1637.  
  1638. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:08:09]
  1639. → cat .git/refs/tags/bugTag
  1640. ab3a446dd1372089cc0f404c72aa488f6463cd42
  1641.  
  1642. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:08:49]
  1643. → git tag newBugTag 315ac1
  1644. fatal: Failed to resolve '315ac1' as a valid ref.
  1645.  
  1646. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:09:45]
  1647. → git tag newBugTag 315bac1
  1648.  
  1649. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:09:52]
  1650. → gloga
  1651. * 315bac1 (HEAD -> bug, tag: newBugTag) Another bug!
  1652. * ab3a446 (tag: bugTag) Bug eats all the fruits
  1653. | * 649f55c (melons) Add a watermelon
  1654. | * 67e7d5a (berries) Add a blackberry
  1655. | * b17d9bb (master) Add an orange
  1656. |/
  1657. * 5fd024c Add an apple
  1658. * 6b57a08 Add banana to the shopping list
  1659.  
  1660.  
  1661.  
  1662. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:09:57]
  1663. → git tag -d bugTag
  1664. Deleted tag 'bugTag' (was ab3a446)
  1665.  
  1666.  
  1667.  1 This is an annotated tag
  1668.  
  1669. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:10:08]
  1670. → gloga
  1671. * 315bac1 (HEAD -> bug, tag: newBugTag) Another bug!
  1672. * ab3a446 Bug eats all the fruits
  1673. | * 649f55c (melons) Add a watermelon
  1674. | * 67e7d5a (berries) Add a blackberry
  1675. | * b17d9bb (master) Add an orange
  1676. |/
  1677. * 5fd024c Add an apple
  1678. * 6b57a08 Add banana to the shopping list
  1679.  
  1680. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:10:10]
  1681. → git tag -d bugTag
  1682.  
  1683. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:11:01]
  1684. → git tag -a 315bac1
  1685. fatal: no tag message?
  1686.  
  1687. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:11:39]
  1688. → git tag -a annotatedTag 315bac1
  1689.  
  1690. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:12:07]
  1691. → gloga
  1692. * 315bac1 (HEAD -> bug, tag: newBugTag, tag: annotatedTag) Another bug!
  1693. * ab3a446 Bug eats all the fruits
  1694. | * 649f55c (melons) Add a watermelon
  1695. | * 67e7d5a (berries) Add a blackberry
  1696. | * b17d9bb (master) Add an orange
  1697. |/
  1698. * 5fd024c Add an apple
  1699. * 6b57a08 Add banana to the shopping list
  1700.  
  1701. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:12:10]
  1702. → cat .git/refs/tags/annotatedTag
  1703. dff227287125ff8986f8c94770bda8499cdb6cb2
  1704.  
  1705. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:12:46]
  1706. → git cat-file -p dff22
  1707. object 315bac19203c485ef9f7706e857b2a603b2b644e
  1708. type commit
  1709. tag annotatedTag
  1710. tagger parcox <parcoxs@gmail.com> 1512281517 +0700
  1711.  
  1712. This is an annotated tag
  1713.  
  1714. # bowo at Bowos-Sony-Vaio.local in ~/Documents/Repo/grocery on git:bug ● [13:12:55]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement