6.1 KiB
6.1 KiB
title, intro, redirect_from, versions
| title | intro | redirect_from | versions | |||||
|---|---|---|---|---|---|---|---|---|
| Keyboard shortcuts | You can use keyboard shortcuts in {% data variables.product.prodname_desktop %}. |
|
|
{% mac %}
GitHub Desktop keyboard shortcuts on macOS
Site wide shortcuts
| Keyboard shortcut | Description |
|---|---|
| ⌘, | Go to Preferences |
| ⌘H | Hide the {% data variables.product.prodname_desktop %} application |
| ⌥⌘H | Hide all other applications |
| ⌘Q | Quit {% data variables.product.prodname_desktop %} |
| ⌃⌘F | Toggle full screen view |
| ⌘0 | Reset zoom to default text size |
| ⌘= | Zoom in for larger text and graphics |
| ⌘- | Zoom out for smaller text and graphics |
| ⌥⌘I | Toggle Developer Tools |
Repositories
| Keyboard shortcut | Description |
|---|---|
| ⌘N | Add a new repository |
| ⌘O | Add a local repository |
| ⇧⌘O | Clone a repository from {% data variables.product.prodname_dotcom %} |
| ⌘T | Show a list of your repositories |
| ⌘P | Push the latest commits to {% data variables.product.prodname_dotcom %} |
| ⇧⌘P | Pull down the latest changes from {% data variables.product.prodname_dotcom %} |
| ⌘⌫ | Remove an existing repository |
| ⇧⌘G | View the repository on {% data variables.product.prodname_dotcom %} |
| ⌃` | Open repository in your preferred terminal tool |
| ⇧⌘F | Show the repository in Finder |
| ⇧⌘A | Open the repository in your preferred editor tool |
| ⌘I | Create an issue on {% data variables.product.prodname_dotcom %} |
Branches
| Keyboard shortcut | Description |
|---|---|
| ⌘1 | Show all your changes before committing |
| ⌘2 | Show your commit history |
| ⌘B | Show all your branches |
| ⌘G | Go to the commit summary field |
| ⌘Enter | Commit changes when summary or description field is active |
| space | Select or deselect all highlighted files |
| ⇧⌘N | Create a new branch |
| ⇧⌘R | Rename the current branch |
| ⇧⌘D | Delete the current branch |
| ⇧⌘U | Update from default branch |
| ⇧⌘B | Compare to an existing branch |
| ⇧⌘M | Merge into current branch |
| ⌃H | Show or hide stashed changes |
| ⇧⌘C | Compare branches on {% data variables.product.prodname_dotcom %} |
| ⌘R | Show the current pull request on {% data variables.product.prodname_dotcom %} |
{% endmac %}
{% windows %}
GitHub Desktop keyboard shortcuts on Windows
Site wide shortcuts
| Keyboard shortcut | Description |
|---|---|
| Ctrl, | Go to Options |
| F11 | Toggle full screen view |
| Ctrl0 | Reset zoom to default text size |
| Ctrl= | Zoom in for larger text and graphics |
| Ctrl- | Zoom out for smaller text and graphics |
| CtrlShiftI | Toggle Developer Tools |
Repositories
| Keyboard Shortcut | Description |
|---|---|
| CtrlN | Add a new repository |
| CtrlO | Add a local repository |
| CtrlShiftO | Clone a repository from {% data variables.product.prodname_dotcom %} |
| CtrlT | Show a list of your repositories |
| CtrlP | Push the latest commits to {% data variables.product.prodname_dotcom %} |
| CtrlShiftP | Pull down the latest changes from {% data variables.product.prodname_dotcom %} |
| CtrlDelete | Remove an existing repository |
| CtrlShiftG | View the repository on {% data variables.product.prodname_dotcom %} |
| Ctrl` | Open repository in your preferred command line tool |
| CtrlShiftF | Show the repository in Explorer |
| CtrlShiftA | Open the repository in your preferred editor tool |
| CtrlI | Create an issue on {% data variables.product.prodname_dotcom %} |
Branches
| Keyboard shortcut | Description |
|---|---|
| Ctrl1 | Show all your changes before committing |
| Ctrl2 | Show your commit history |
| CtrlB | Show all your branches |
| CtrlG | Go to the commit summary field |
| CtrlEnter | Commit changes when summary or description field is active |
| space | Select or deselect all highlighted files |
| CtrlShiftN | Create a new branch |
| CtrlShiftR | Rename the current branch |
| CtrlShiftD | Delete the current branch |
| CtrlShiftU | Update from default branch |
| CtrlShiftB | Compare to an existing branch |
| CtrlShiftM | Merge into current branch |
| CtrlH | Show or hide stashed changes |
| CtrlShiftC | Compare branches on {% data variables.product.prodname_dotcom %} |
| CtrlR | Show the current pull request on {% data variables.product.prodname_dotcom %} |
{% endwindows %}