@@ -13,9 +13,10 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
1313 - [ Adjust Tab Space] ( #adjust-tab-space )
1414 - [ Commit History by Author] ( #commit-history-by-author )
1515 - [ 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 )
1920 - [ Gists] ( #gists )
2021 - [ Git.io] ( #gitio )
2122 - [ Keyboard Shortcuts] ( #keyboard-shortcuts )
@@ -35,6 +36,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
3536 - [ Metadata and Plugin Support for GitHub Pages] ( #metadata-and-plugin-support-for-github-pages )
3637 - [ Viewing YAML Metadata in your Documents] ( #viewing-yaml-metadata-in-your-documents )
3738 - [ Rendering Tabular Data] ( #rendering-tabular-data )
39+ - [ Revert a Pull Request] ( #revert-a-pull-request )
3840 - [ Diffs] ( #diffs )
3941 - [ Rendered prose Diffs] ( #rendered-prose-diffs )
4042 - [ Diffable Maps] ( #diffable-maps )
@@ -55,6 +57,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
5557 - [ Styled Git Log] ( #styled-git-log )
5658 - [ Git Query] ( #git-query )
5759 - [ Merged Branches] ( #merged-branches )
60+ - [ Fixup and Autosquash] ( #fixup-and-autosquash )
5861 - [ Web Server for Browsing Local Repositories] ( #web-server-for-browsing-local-repositories )
5962 - [ Git Configurations] ( #git-configurations )
6063 - [ Aliases] ( #aliases )
@@ -107,7 +110,8 @@ $ git clone https://github.com/tiimgreen/github-cheat-sheet
107110
108111[ * 깃 ` clone ` 커맨드에 대해 더 읽어 보세요.* ] ( http://git-scm.com/docs/git-clone )
109112
110- ### Compare all Branches to Another Branch
113+ ###Branch
114+ #### Compare all Branches to Another Branch
111115
112116저장소의 [ 브랜치] ( https://github.com/tiimgreen/github-cheat-sheet/branches ) 페이지는, 커밋 버튼의 뒤에 있습니다.
113117
@@ -135,7 +139,7 @@ https://github.com/{user}/{repo}/branches/{branch}
135139
136140이 것을 확인함으로써 커맨드 라인을 사용하지 않은 페이지에서의 브랜치 삭제가 더 쉬워집니다.
137141
138- ### Comparing Branches
142+ #### Comparing Branches
139143
140144깃허브에서 브랜치 비교를 하시려면, URL을 이런 식으로 바꾸세요.
141145
@@ -168,7 +172,7 @@ https://github.com/rails/rails/compare/master@{2014-10-04}...master
168172
169173[ * 시간으로 커밋을 비교하는 법에 대해 더 읽어 보세요.* ] ( https://help.github.com/articles/comparing-commits-across-time )
170174
171- ### Compare branches across forked repositories
175+ #### Compare branches across forked repositories
172176
173177포크된 저장소간의 브랜치를 비교하려면 URL을 이렇게 변경하세요.
174178
@@ -200,7 +204,7 @@ $ git clone https://gist.github.com/tiimgreen/10545817
200204
201205![ Gists] ( http://i.imgur.com/dULZXXo.png )
202206
203- This means you also can modify and push updates to Gists:
207+ 이는 Gists에서도 수정하고 업데이트를 부쉬할 수 있다는 의미입니다.
204208
205209``` bash
206210$ git commit
@@ -471,8 +475,18 @@ Jemoji와 jekyll-mentions플러그인은 GitHub.com에서 처럼 [emoji](#emojis
471475
472476[ * 표 데이타 표시에 대해 더 읽어 보세요.* ] ( https://github.com/blog/1601-see-your-csvs )
473477
474- ### Diffs
478+ ###Revert a Pull Request
479+
480+ 풀 리퀘스트가 머지된 후에, 아무 도움이 안되거나 머지가 잘못된 결정이었다는 걸
481+ 눈치 챌 때가 있습니다.
482+
483+ 풀 리퀘스트 페이지의 커밋의 오른 쪽에 있는 ** Revert** 버튼을 클릭하면 이 풀리퀘스트를 되돌리는 풀리퀘스트를 만들어 되돌릴 수 있습니다.
475484
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
476490#### Rendered Prose Diffs
477491
478492산문(prose) 파일이 있는 커밋과 풀 리퀘스트는 * source* 와 * rendered* 뷰 기능을 사용할 수 있습니다.
@@ -763,6 +777,18 @@ $ git branch --no-merged
763777
764778[ * 깃 ` branch ` 커맨드에 대해 더 읽어 보세요.* ] ( http://git-scm.com/docs/git-branch )
765779
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+
766792### Web Server for Browsing Local Repositories
767793
768794깃 ` instaweb ` 커맨드을 사용하면, 즉석에서 ` gitweb ` 안에서 작업중인 저장소를 둘러 볼
0 commit comments