White’s Blog Githug

Installation
https://github.com/Gazler/githug
solution of all levels

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[git_hug]
[git_hug]# git config user.name cppking
[git_hug]# git config user.email [email protected]
[git_hug]# git add README
[git_hug]# git commit -a -m "first"
[git_hug]# git clone https://github.com/Gazler/cloneme.git
[git_hug]# git clone https://github.com/Gazler/cloneme my_cloned_rep
[git_hug]# echo '*.swp' >> .gitignore
[git_hug]# echo -e '*.an!lib.a' >> .gitignore
[git_hug]# git status
how many will be commited: 2
[git_hug]# git rm deleteme.rb
[git_hug]# git rm --cached deleteme.rb
[git_hug]# git stash
[git_hug]# git mv oldfile.txt newfile.txt
[git_hug]# mkdir src
[git_hug]# git mv *.html src
[git_hug]# git log
commit e86b6e9838de9a33d45f2b5ca09274a858c4693e
[git_hug]# git log
commit e27d25fbd50c15639374d3e8195f8075d166b91f
[git_hug]# git tag new_tag e27d
[git_hug]# git push --tags origin master
categories: [tech]
[git_hug]# git add forgotten_file.rb
[git_hug]# git commit --amend -m 'add forgotten file'
[git_hug]# date
Fri Nov 14 00:16:36 CST 2014
[git_hug]# git commit --date='Fri Nov 15 00:16:36 CST 2014' -m 'some'
[git_hug]# git reset HEAD -- to_commit_second.rb
[git_hug]# git log --format=oneline
427b79a3d384bbae6d0a9e891f4b9c5a0eec2474 Premature commit
dc2843ef69155e2e7080f69d5963a2e58f5b1c84 Initial commit
[git_hug]# git reset --soft dc28
[git_hug]# git checkout HEAD -- config.rb
[git_hug]# git remote -v
[git_hug]# git remote -v
[git_hug]# git pull origin master
[git_hug]# git remote add origin https://github.com/githug/githug
[git_hug]# git rebase origin/master
[git_hug]# git push origin master
[git_hug]# git diff
[git_hug]# git blame config.rb
[git_hug]# git branch test_code
[git_hug]# git checkout -b my_branch
[git_hug]# git checkout v1.2
[git_hug]# git checkout tags/v1.2
categories: [tech]
[git_hug]# git log
commit 4b451e9e24ef5cdccd8ec79e06ec6143fb5cad4b
commit e1968e6d2e0d95fe418d8d21a4de1b7ebe41da0e
[git_hug]# git checkout -b test_branch e196
[git_hug]# git branch -d delete_me
[git_hug]# git push origin test_branch
[git_hug]# git merge feature
[git_hug]# git fetch origin
[git_hug]# git repack -d
[git_hug]# git log (on branch 'new-feature')
[git_hug]# git cherry-pick ca32
[git_hug]# git grep -i 'todo'
[git_hug]# git rebase -i HEAD~2 (edit)
[git_hug]# git rebase -i HEAD~3 (squash)
[git_hug]# git merge --squash long-feature-branch
[git_hug]# git commit (interactive)
[git_hug]# git rebase -i HEAD~3 (change commit order)
[git_hug]# git bisect
[git_hug]# git add --edit feature.rb
[git_hug]# git reflog
[git_hug]# git revert 2962
[git_hug]# git reflog
[git_hug]# git reset --hard 10d9
[git_hug]# git merge mybranch
[git_hug]# vim poem.txt
[git_hug]# git add poem.txt
[git_hug]# git commit