Skip to content

Instantly share code, notes, and snippets.

@uolcano
Created March 19, 2017 17:09
Show Gist options
  • Save uolcano/0d808ae536120bb11b1d134c78b65200 to your computer and use it in GitHub Desktop.
Save uolcano/0d808ae536120bb11b1d134c78b65200 to your computer and use it in GitHub Desktop.
My Tips To Use GitHub

收集GitHub使用技巧

快捷键Shortcut

Shortcut Description Shortcut Description
Site wide shortcuts ———— Commit list ————
s Focus search bar y Expand URL to its canonical form
g n Go to Notifications Dashboards ————
g d Go to Dashboard g i Go to your issues
? Bring up this help dialog g p Go to your pull requests
j / shift / Move selection down Notifications ————
k Move selection up e / I / y Mark as read
x Toggle selection shift m Mute thread
o / enter Open selection Pull request list ————
Repositories ———— r Reply (quoting selected text)
g c Go to Code o / enter Open issue
g i Go to Issues ctrl enter Submit comment
g p Go to Pull Requests ctrl shift p Preview comment
g w Go to Wiki q Request reviewers
Source code browsing ———— Pull request review bar ————
t Activates the file finder c Open commits list
l Jump to line t Open files list
w Switch branch/tag n Next commit
y Expand URL to its canonical form p Previous commit
i Show/hide all inline notes Network Graph ————
Issues ———— /h Scroll left
ctrl enter Submit comment /l Scroll right
ctrl shift p Preview comment /k Scroll up
c Create issue /j Scroll down
/ Focus issues search bar t Toggle visibility of head labels
u Filter by author shift ← / shift h Scroll all the way left
l Filter by or edit labels shift → / shift l Scroll all the way right
m Filter by or edit milestones shift ↑ / shift k Scroll all the way up
a Filter by or edit assignee shift ↓ / shift j Scroll all the way down
r Reply (quoting selected text)
Browsing commits ————
ctrl enter Submit comment
escape Close form
p Parent commit
o Other parent commit

功能Feature

  • Trending: 开源项目排名
  • Explore: 查找有趣的项目和问题
  • News Feed: 关注的人和项目组织的动向
  • Jobs: 求职与招聘
  • Resume: 制作个人简历
  • Gist: 代码片段,收藏夹,私有笔记,嵌入其他站点,简单博文,在gist后面加.pibb得到纯HTML页面可以直接其他页面iframe引用,如 pibb
  • Advanced Search: 增强查找
  • Webhooks: 事件触发,消息推送
  • Blog: GitHub官方博客,查看最新公告与特性

项目

  • SVN: GitHub不仅支持Git,还支持SVN
  • Code frequency: 查看代码增删,判断软件好坏
  • Punch card: 查看项目代码提交时间点
  • gh-pages: 分支作为静态站点
  • TODD list: 任务列表,Markdown写成,可以动态更新

Do What You Want

  • GitHub issues: 做Blog或者BBS
  • GitHub API: 强大的第三方接口,比如 markdown渲染 oAuth第三方登录
  • Docs: 第三方文档托管 Read the Docs GitBook
  • Repository: 代码托管,图床,网盘
  • raw/camo: 托管js或css文件
  • Gollum Wiki: 构建Wiki系统
  • Sport Scheme: 健身计划与签到
  • Collaboration: Swift Translate

URL查询命令

  • https://github.com/rails/rails/compare/master...4-1-stable : 分支比较,版本
  • https://github.com/rails/rails/compare/master@{1.day.ago}...master https://github.com/rails/rails/compare/master@{2014-10-04}...master : 分支比较,日期
  • https://github.com/rails/rails/compare/byroot:master...master : 与派生仓库比较
  • https://github.com/rails/rails/commits/master?author=dhh : 查看某个作者的提交历史

浏览器插件Extension

  • octotree: Repo的侧边栏目录
  • zenhub: 向Repo融合Boards栏,一览项目变更动态

手机应用

参考阅读

  1. Github上都有哪些有用但不为大家熟知的小功能?
  2. 在 GitHub 可以做什么,用户又习惯做些什么?
  3. 怎样使用 GitHub?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment