From 32e313c4c6f2043d6e216b0970a412c787b784aa Mon Sep 17 00:00:00 2001 From: James Fountain Date: Wed, 6 Apr 2016 09:56:46 -0400 Subject: [PATCH 1/9] Removed whitespace section in english file. Removed reference to whitespace feature that is no longer supported. --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 1d886a1..f0ab54d 100644 --- a/README.md +++ b/README.md @@ -78,12 +78,6 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c - [Git Articles](#git-articles) ## GitHub -### Ignore Whitespace -Adding `?w=1` to any diff URL will remove any changes only in whitespace, enabling you to see only that code that has changed. - -![Diff without whitespace](https://camo.githubusercontent.com/797184940defadec00393e6559b835358a863eeb/68747470733a2f2f6769746875622d696d616765732e73332e616d617a6f6e6177732e636f6d2f626c6f672f323031312f736563726574732f776869746573706163652e706e67) - -[*Read more about GitHub secrets.*](https://github.com/blog/967-github-secrets) ### Adjust Tab Space Adding `?ts=4` to a diff or file URL will display tab characters as 4 spaces wide instead of the default 8. The number after `ts` can be adjusted to suit your preference. This does not work on Gists, or raw file views, but a [Chrome](https://chrome.google.com/webstore/detail/tab-size-on-github/ofjbgncegkdemndciafljngjbdpfmbkn) or [Opera extension](https://addons.opera.com/en/extensions/details/github-tab-size/) can automate this. From 46b6d394fbba90975feb52610506aacc8bf13ee2 Mon Sep 17 00:00:00 2001 From: James Fountain Date: Wed, 6 Apr 2016 09:59:21 -0400 Subject: [PATCH 2/9] Removed whitespace section. Removed reference to whitespace feature that is no longer supported. --- README.ja.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.ja.md b/README.ja.md index f41fd2b..402a33f 100644 --- a/README.ja.md +++ b/README.ja.md @@ -73,12 +73,6 @@ - [訳注](#%E8%A8%B3%E6%B3%A8) ## GitHub -### 空白の無視 -GitHub上で差分ページを表示している時、そのURLに`?w=1`を加えると、空白の変化によるできた差分は表示されなくなり、コード上の変化だけを参照することができる。 - -![Diff without whitespace](https://camo.githubusercontent.com/797184940defadec00393e6559b835358a863eeb/68747470733a2f2f6769746875622d696d616765732e73332e616d617a6f6e6177732e636f6d2f626c6f672f323031312f736563726574732f776869746573706163652e706e67) - -[*GitHubの秘密についてもっと詳しく*](https://github.com/blog/967-github-secrets) ### タブ幅の調節 差分やファイルを表示している時、URLに`?ts=4`を追加するとタブを空白4つの幅で表示する。デフォルトは8つだ。`ts`に指定した数で表示されるということだ。これはGistやrawファイルを表示している時には適用されないが、[Chrome](https://chrome.google.com/webstore/detail/github-tab-size/ofjbgncegkdemndciafljngjbdpfmbkn)と[Operaの拡張](https://addons.opera.com/en/extensions/details/github-tab-size/)をインストールすることにより、対応することができる。 From e27c1fa4575e0bfb198a2e85a2be75db9326dae9 Mon Sep 17 00:00:00 2001 From: James Fountain Date: Wed, 6 Apr 2016 10:00:22 -0400 Subject: [PATCH 3/9] Removed whitespace section. Removed reference to whitespace feature that is no longer supported. --- README.ko.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/README.ko.md b/README.ko.md index c2420f9..be26f42 100644 --- a/README.ko.md +++ b/README.ko.md @@ -78,14 +78,6 @@ Git과 GitHub에서 꽤 유용하지만 숨겨져 있는 기능들에 대해 다 ## GitHub -### Ignore Whitespace - -`?w=1`를 diff URL에 추가하면 변경된 코드만 볼 수 있도록, 공백만 바뀐 수정을 제거할 수 있습니다. - -![Diff without whitespace](https://camo.githubusercontent.com/797184940defadec00393e6559b835358a863eeb/68747470733a2f2f6769746875622d696d616765732e73332e616d617a6f6e6177732e636f6d2f626c6f672f323031312f736563726574732f776869746573706163652e706e67) - -[*GitHub의 비밀을 더 읽어 보세요.*](https://github.com/blog/967-github-secrets) - ### Adjust Tab Space diff나 파일 URL에 `?ts=4`를 덧붙이면 탭 문자의 크기를 기본값인 공백 8개 대신 4개로 보여줍니다. `ts` 뒤의 숫자는 설정에 맞게 변경 하실 수 있습니다. gist나 raw 파일 보기에는 적용 되지 않습니다만, [크롬 확장 프로그램](https://chrome.google.com/webstore/detail/github-tab-size/ofjbgncegkdemndciafljngjbdpfmbkn)이나 [오페라 확장 프로그램](https://addons.opera.com/en/extensions/details/github-tab-size/)으로 자동화 할 수 있습니다. From 41fa40caa38ce1a6dc3182de0fb08db203636240 Mon Sep 17 00:00:00 2001 From: James Fountain Date: Wed, 6 Apr 2016 10:01:00 -0400 Subject: [PATCH 4/9] Removed link to removed whitespace section. --- README.ko.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.ko.md b/README.ko.md index be26f42..779bcb4 100644 --- a/README.ko.md +++ b/README.ko.md @@ -9,7 +9,6 @@ Git과 GitHub에서 꽤 유용하지만 숨겨져 있는 기능들에 대해 다 # 목록 - [GitHub](#github) - - [Ignore Whitespace](#ignore-whitespace) - [Adjust Tab Space](#adjust-tab-space) - [Commit History by Author](#commit-history-by-author) - [Cloning a Repository](#cloning-a-repository) From e4302ea127a94f6506f78749d23d8998ba7a073b Mon Sep 17 00:00:00 2001 From: James Fountain Date: Wed, 6 Apr 2016 10:01:34 -0400 Subject: [PATCH 5/9] Removed link to removed whitespace section. --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index f0ab54d..10d0476 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c ## Table of Contents - [GitHub](#github) - - [Ignore Whitespace](#ignore-whitespace) - [Adjust Tab Space](#adjust-tab-space) - [Commit History by Author](#commit-history-by-author) - [Cloning a Repository](#cloning-a-repository) From 76e4424044636b5f5532440d488b07067eb11487 Mon Sep 17 00:00:00 2001 From: James Fountain Date: Wed, 6 Apr 2016 10:02:33 -0400 Subject: [PATCH 6/9] Removed link to removed whitespace section. --- README.ja.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.ja.md b/README.ja.md index 402a33f..ca0aaa9 100644 --- a/README.ja.md +++ b/README.ja.md @@ -7,7 +7,6 @@ # 目次 - [GitHub](#github) - - [空白の無視](#%E7%A9%BA%E7%99%BD%E3%81%AE%E7%84%A1%E8%A6%96) - [タブ幅の調節](#%E3%82%BF%E3%83%96%E5%B9%85%E3%81%AE%E8%AA%BF%E7%AF%80) - [特定のユーザーによるコミット履歴](#%E7%89%B9%E5%AE%9A%E3%81%AE%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%AB%E3%82%88%E3%82%8B%E3%82%B3%E3%83%9F%E3%83%83%E3%83%88%E5%B1%A5%E6%AD%B4) - [リポジトリのクローン](#%E3%83%AA%E3%83%9D%E3%82%B8%E3%83%88%E3%83%AA%E3%81%AE%E3%82%AF%E3%83%AD%E3%83%BC%E3%83%B3) From 932e1ed146fae166ad0e01390b3ceda2ea883c13 Mon Sep 17 00:00:00 2001 From: James Fountain Date: Wed, 6 Apr 2016 10:04:28 -0400 Subject: [PATCH 7/9] Removed whitespace section and link. Removed reference to whitespace feature that is no longer supported. --- README.zh-cn.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/README.zh-cn.md b/README.zh-cn.md index 6ad60e5..19ccbc8 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -5,7 +5,6 @@ Git 和 Github 秘籍,灵感来自于 [Zach Holman](https://github.com/holman) # 目录 - [GitHub](#github) - - [不比较空白字符](#不比较空白字符) - [调整 Tab 字符所代表的空格数](#调整-tab-字符所代表的空格数) - [查看某个用户的 Commit 历史](#查看某个用户的-commit-历史) - [仓库克隆](#仓库克隆) @@ -66,13 +65,7 @@ Git 和 Github 秘籍,灵感来自于 [Zach Holman](https://github.com/holman) - [Git 参考书籍](#git-参考书籍) ## GitHub -### 不比较空白字符 -在任意 diff 页面的 UR L后加上 `?w=1`,可以去掉那些只是空白字符的改动,使你能更专注于代码改动。 - -![Diff without whitespace](https://camo.githubusercontent.com/797184940defadec00393e6559b835358a863eeb/68747470733a2f2f6769746875622d696d616765732e73332e616d617a6f6e6177732e636f6d2f626c6f672f323031312f736563726574732f776869746573706163652e706e67) - -[*详见 GitHub secrets.*](https://github.com/blog/967-github-secrets) ### 调整 Tab 字符所代表的空格数 在 diff 或文件的 URL 后面加上 `?ts=4` ,这样当显示 tab 字符的长度时就会是 4 个空格的长度,不再是默认的 8 个空格。 `ts` 后面的数字还可以根据你个人的偏好进行修改。这个技巧不适用于 Gists,或者以 Raw 格式查看文件, 但有浏览器扩展插件可以帮你自动调整: [Chrome 扩展](https://chrome.google.com/webstore/detail/github-tab-size/ofjbgncegkdemndciafljngjbdpfmbkn) , [Opera 扩展](https://addons.opera.com/en/extensions/details/github-tab-size/)。 From 85314ead4498a72c3d5fb937cdde51e7063618ab Mon Sep 17 00:00:00 2001 From: James Fountain Date: Wed, 6 Apr 2016 10:05:40 -0400 Subject: [PATCH 8/9] Removed whitespace section and link. Removed reference to whitespace feature that is no longer supported. --- README.zh-tw.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/README.zh-tw.md b/README.zh-tw.md index 241f6bd..f587c99 100644 --- a/README.zh-tw.md +++ b/README.zh-tw.md @@ -5,7 +5,6 @@ Git 和 Github 秘笈,靈感來自於 [Zach Holman](https://github.com/holman) # 目錄 - [GitHub](#github) - - [不比較空白字串](#不比較空白字串) - [調整 Tab 字串所代表的空格數](#調整-tab-字串所代表的空格數) - [查看某個使用者的 Commit 歷史](#查看某個使用者的-commit-歷史) - [倉庫複製](#倉庫複製) @@ -68,13 +67,6 @@ Git 和 Github 秘笈,靈感來自於 [Zach Holman](https://github.com/holman) - [Git 參考書籍](#git-參考書籍) ## GitHub -### 不比較空白字串 - -在任意 diff 頁面的 UR L後加上 `?w=1`,可以去掉那些隻是空白字串的改動,使你能更專註於代碼改動。 - -![Diff without whitespace](https://camo.githubusercontent.com/797184940defadec00393e6559b835358a863eeb/68747470733a2f2f6769746875622d696d616765732e73332e616d617a6f6e6177732e636f6d2f626c6f672f323031312f736563726574732f776869746573706163652e706e67) - -[*詳見 GitHub secrets.*](https://github.com/blog/967-github-secrets) ### 調整 Tab 字串所代表的空格數 在 diff 或文件的 URL 後面加上 `?ts=4` ,這樣當顯示 tab 字串的長度時就會是 4 個空格的長度,不再是默認的 8 個空格。 `ts` 後面的數字還可以根據你個人的偏好進行修改。這個技巧不適用於 Gists,或者以 Raw 格式查看文件, 但有瀏覽器擴展插件可以幫你自動調整: [Chrome 擴展](https://chrome.google.com/webstore/detail/github-tab-size/ofjbgncegkdemndciafljngjbdpfmbkn) , [Opera 擴展](https://addons.opera.com/en/extensions/details/github-tab-size/)。 From d5e0909461b027124294a8ae578d5a24cb2d26b9 Mon Sep 17 00:00:00 2001 From: jfountain Date: Wed, 6 Apr 2016 10:12:37 -0400 Subject: [PATCH 9/9] Made whitespace consistent. --- README.zh-cn.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.zh-cn.md b/README.zh-cn.md index 19ccbc8..5cf10a3 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -66,7 +66,6 @@ Git 和 Github 秘籍,灵感来自于 [Zach Holman](https://github.com/holman) ## GitHub - ### 调整 Tab 字符所代表的空格数 在 diff 或文件的 URL 后面加上 `?ts=4` ,这样当显示 tab 字符的长度时就会是 4 个空格的长度,不再是默认的 8 个空格。 `ts` 后面的数字还可以根据你个人的偏好进行修改。这个技巧不适用于 Gists,或者以 Raw 格式查看文件, 但有浏览器扩展插件可以帮你自动调整: [Chrome 扩展](https://chrome.google.com/webstore/detail/github-tab-size/ofjbgncegkdemndciafljngjbdpfmbkn) , [Opera 扩展](https://addons.opera.com/en/extensions/details/github-tab-size/)。