@@ -13,9 +13,10 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
13
13
- [ Adjust Tab Space] ( #adjust-tab-space )
14
14
- [ Commit History by Author] ( #commit-history-by-author )
15
15
- [ Cloning a Repository] ( #cloning-a-repository )
16
- - [ Compare all Branches to Another Branch] ( #compare-all-branches-to-another-branch )
17
- - [ Comparing Branches] ( #comparing-branches )
18
- - [ Compare Branches across Forked Repositories] ( #compare-branches-across-forked-repositories )
16
+ - [ Branch] ( #branch )
17
+ - [ Compare all Branches to Another Branch] ( #compare-all-branches-to-another-branch )
18
+ - [ Comparing Branches] ( #comparing-branches )
19
+ - [ Compare Branches across Forked Repositories] ( #compare-branches-across-forked-repositories )
19
20
- [ Gists] ( #gists )
20
21
- [ Git.io] ( #gitio )
21
22
- [ Keyboard Shortcuts] ( #keyboard-shortcuts )
@@ -35,6 +36,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
35
36
- [ Metadata and Plugin Support for GitHub Pages] ( #metadata-and-plugin-support-for-github-pages )
36
37
- [ Viewing YAML Metadata in your Documents] ( #viewing-yaml-metadata-in-your-documents )
37
38
- [ Rendering Tabular Data] ( #rendering-tabular-data )
39
+ - [ Revert a Pull Request] ( #revert-a-pull-request )
38
40
- [ Diffs] ( #diffs )
39
41
- [ Rendered prose Diffs] ( #rendered-prose-diffs )
40
42
- [ Diffable Maps] ( #diffable-maps )
@@ -55,6 +57,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
55
57
- [ Styled Git Log] ( #styled-git-log )
56
58
- [ Git Query] ( #git-query )
57
59
- [ Merged Branches] ( #merged-branches )
60
+ - [ Fixup and Autosquash] ( #fixup-and-autosquash )
58
61
- [ Web Server for Browsing Local Repositories] ( #web-server-for-browsing-local-repositories )
59
62
- [ Git Configurations] ( #git-configurations )
60
63
- [ Aliases] ( #aliases )
@@ -107,7 +110,8 @@ $ git clone https://github.com/tiimgreen/github-cheat-sheet
107
110
108
111
[ * 깃 ` clone ` 커맨드에 대해 더 읽어 보세요.* ] ( http://git-scm.com/docs/git-clone )
109
112
110
- ### Compare all Branches to Another Branch
113
+ ###Branch
114
+ #### Compare all Branches to Another Branch
111
115
112
116
저장소의 [ 브랜치] ( https://github.com/tiimgreen/github-cheat-sheet/branches ) 페이지는, 커밋 버튼의 뒤에 있습니다.
113
117
@@ -135,7 +139,7 @@ https://github.com/{user}/{repo}/branches/{branch}
135
139
136
140
이 것을 확인함으로써 커맨드 라인을 사용하지 않은 페이지에서의 브랜치 삭제가 더 쉬워집니다.
137
141
138
- ### Comparing Branches
142
+ #### Comparing Branches
139
143
140
144
깃허브에서 브랜치 비교를 하시려면, URL을 이런 식으로 바꾸세요.
141
145
@@ -168,7 +172,7 @@ https://github.com/rails/rails/compare/master@{2014-10-04}...master
168
172
169
173
[ * 시간으로 커밋을 비교하는 법에 대해 더 읽어 보세요.* ] ( https://help.github.com/articles/comparing-commits-across-time )
170
174
171
- ### Compare branches across forked repositories
175
+ #### Compare branches across forked repositories
172
176
173
177
포크된 저장소간의 브랜치를 비교하려면 URL을 이렇게 변경하세요.
174
178
@@ -200,7 +204,7 @@ $ git clone https://gist.github.com/tiimgreen/10545817
200
204
201
205
![ Gists] ( http://i.imgur.com/dULZXXo.png )
202
206
203
- This means you also can modify and push updates to Gists:
207
+ 이는 Gists에서도 수정하고 업데이트를 부쉬할 수 있다는 의미입니다.
204
208
205
209
``` bash
206
210
$ git commit
@@ -471,8 +475,18 @@ Jemoji와 jekyll-mentions플러그인은 GitHub.com에서 처럼 [emoji](#emojis
471
475
472
476
[ * 표 데이타 표시에 대해 더 읽어 보세요.* ] ( https://github.com/blog/1601-see-your-csvs )
473
477
474
- ### Diffs
478
+ ###Revert a Pull Request
479
+
480
+ 풀 리퀘스트가 머지된 후에, 아무 도움이 안되거나 머지가 잘못된 결정이었다는 걸
481
+ 눈치 챌 때가 있습니다.
482
+
483
+ 풀 리퀘스트 페이지의 커밋의 오른 쪽에 있는 ** Revert** 버튼을 클릭하면 이 풀리퀘스트를 되돌리는 풀리퀘스트를 만들어 되돌릴 수 있습니다.
475
484
485
+ ![ Revert button] ( https://camo.githubusercontent.com/0d3350caf2bb1cba53123ffeafc00ca702b1b164/68747470733a2f2f6769746875622d696d616765732e73332e616d617a6f6e6177732e636f6d2f68656c702f70756c6c5f72657175657374732f7265766572742d70756c6c2d726571756573742d6c696e6b2e706e67 )
486
+
487
+ [ * Read more about Revert pull request] ( https://github.com/blog/1857-introducing-the-revert-button )
488
+
489
+ ### Diffs
476
490
#### Rendered Prose Diffs
477
491
478
492
산문(prose) 파일이 있는 커밋과 풀 리퀘스트는 * source* 와 * rendered* 뷰 기능을 사용할 수 있습니다.
@@ -763,6 +777,18 @@ $ git branch --no-merged
763
777
764
778
[ * 깃 ` branch ` 커맨드에 대해 더 읽어 보세요.* ] ( http://git-scm.com/docs/git-branch )
765
779
780
+ ### Fixup and Autosquash
781
+
782
+ 이전(HEAD의 한개 이상 전의) 커밋에 잘못된 부분이 있다면, 예를들어 ` abcde ` 라면,
783
+ 문제를 수정하고 밑의 커맨드를 입력해 고칠 수 있습니다.
784
+
785
+ ``` bash
786
+ $ git commit --fixup=abcde
787
+ $ git rebase abcde^ --autosquash -i
788
+ ```
789
+ [ * 깃 ` commit ` 커맨드에 대해 더 읽어 보세요.* ] ( http://git-scm.com/docs/git-commit )
790
+ [ * 깃 ` rebase ` 커맨드에 대해 더 읽어 보세요.* ] ( http://git-scm.com/docs/git-rebase )
791
+
766
792
### Web Server for Browsing Local Repositories
767
793
768
794
깃 ` instaweb ` 커맨드을 사용하면, 즉석에서 ` gitweb ` 안에서 작업중인 저장소를 둘러 볼
0 commit comments