https://github.com/emellybmuniz/github-pro-tips
https://github.com/emellybmuniz/github-pro-tips
atalhos dicas education github github-tips notes shortcuts tips tips-and-tricks tricks truques
Last synced: about 16 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/emellybmuniz/github-pro-tips
- Owner: emellybmuniz
- License: mit
- Created: 2025-11-03T15:01:59.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-11-03T15:33:09.000Z (8 months ago)
- Last Synced: 2025-11-03T17:23:26.797Z (8 months ago)
- Topics: atalhos, dicas, education, github, github-tips, notes, shortcuts, tips, tips-and-tricks, tricks, truques
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.en.md
- License: LICENSE
Awesome Lists containing this project
README
# π GitHub Secrets You Need to Know
[πΊπΈ English](./README.en.md) | [π§π· PortuguΓͺs](./README.md)



> A guide by @emellybmuniz with the best shortcuts and tricks to master your productivity on the platform.
## β¨οΈ 1. Essential Shortcuts
* . (Period) β Press `.` in any repository to open the **VS Code editor (github.dev)** instantly in your browser.
* > (Greater than) β Opens github.dev in a **new browser tab** (keeping the current tab open).
* Cmd/Ctrl + K β **Command Palette**. Navigate, search, and execute actions anywhere on GitHub:
* # (Issues/PRs)
* @ (Users)
* / (Files in the repository)
## π§ 2. Navigation
* T β **File Finder (Fuzzy Finder)**. Type the file name to find it quickly.
* W β Quickly switch between **Branches**.
* S or / β Focus the **Search bar**.
* ? β Lists all **keyboard shortcuts** available for that specific view.
* J β Move selection **down** (in lists of issues, PRs, notifications).
* K β Move selection **up** (in lists).
* X β **Toggle selection** (check/uncheck item).
* O or Enter β **Open** selected item.
* Esc β Close dialog or hovercard.
## π» 3. Code Editing in github.dev
When you open the web editor (by pressing .), you have access to several editing shortcuts:
### Basic Editing
* Ctrl/Cmd + X β **Cut entire line** (copies and deletes).
* Ctrl/Cmd + Shift + K β **Delete entire line** (without copying to clipboard).
* Ctrl/Cmd + C β **Copy line** (without selection).
* Ctrl/Cmd + V β **Paste**.
* Alt + β/β β **Move line** up/down.
* Alt + Shift + β/β β **Duplicate line** up/down.
* Ctrl/Cmd + / β **Toggle line comment**.
* Ctrl/Cmd + Z β **Undo**.
* Ctrl/Cmd + Y β **Redo**.
### Markdown Formatting
* Ctrl/Cmd + B β Insert Markdown formatting for **bold**.
* Ctrl/Cmd + I β Insert Markdown formatting for *italic*.
* Ctrl/Cmd + K β Insert Markdown formatting to create a [link](...).
* Ctrl/Cmd + Shift + 7 β Ordered list.
* Ctrl/Cmd + Shift + 8 β Unordered list.
* Ctrl/Cmd + Shift + . β Blockquote.
### Search and Navigation
* Ctrl/Cmd + F β **Find** in file.
* Ctrl/Cmd + G β Find **next**.
* Ctrl/Cmd + Shift + G β Find **previous**.
* Ctrl/Cmd + G β **Go to specific line**.
* Ctrl/Cmd + S β Save / Write commit message.
* Ctrl/Cmd + Shift + P (or F1) β Open the **Command Palette** (access to all functions).
## π§ 4. Code Review
* L β Jump to a **specific Line**.
* Y β Create a **Permalink** (permanent link to the exact code version).
* I β **Show/Hide Comments** in Diffs and PRs.
* R β (With text selected) **Quote the text** in a new comment.
* Shift + Click β Select a **block of lines** (e.g., `#L18-L20`).
* B β Open **Blame** view (see who last changed each line).
* A β Show/hide annotations in diffs.
* E β **Edit file** directly (opens edit tab).
## β‘ 5. Agile Navigation (Go-to)
* G + C β Go to **Code**.
* G + I β Go to **Issues**.
* G + P β Go to **Pull Requests**.
* G + D β Go to **Homepage** (Dashboard).
* G + N β Go to **Notifications**.
* G + B β Go to **Projects** (repository).
* G + A β Go to **Actions**.
* G + W β Go to **Wiki**.
* G + G β Go to **Discussions**.
## π€ 6. GitHub Actions
* Ctrl/Cmd + Space β Get **suggestions** in the workflow editor.
* G + F β Go to the **workflow file**.
* Shift + T or T β Toggle **timestamps** in logs.
* Shift + F or F β Toggle **full screen** in logs.
* Esc β Exit full screen logs.
## π 7. Notifications
* E β Mark as **done**.
* Shift + U β Mark as **unread**.
* Shift + I β Mark as **read**.
* Shift + M β **Unsubscribe**.
## π 8. Code Search (Advanced Search)
GitHub has a powerful code search tool that lets you find exactly what you're looking for:
### Search Qualifiers
* `repo:user/repository` β Limit search to a specific repository.
* `org:organization` β Search across all repositories in an organization.
* `language:language` β Filter by language (e.g., `language:python`).
* `path:path` β Search in a specific path (e.g., `path:src/`).
* `symbol:name` β Search for a symbol/function definition.
* `extension:ext` β Filter by file extension.
### Boolean Operators
* `term1 AND term2` β Both terms must be present.
* `term1 OR term2` β At least one term must be present.
* `term1 NOT term2` β Exclude results with term2.
### Regex Search
* Use `/your-regex/` for regular expression searches.
* Example: `/foo(bar|baz)/` finds "foobar" or "foobaz".
### Tips
* Use quotes to search for exact phrases: `"specific function"`.
* Combine qualifiers: `repo:user/repo language:python path:src/`.
* Access [https://cs.github.com](https://cs.github.com) for the new Code Search interface.
## π 9. URL Tricks (Repositories)
* `github.com` β `github.dev` β Opens in the VS Code web editor.
* `github.com` β `githubbox.com` β Opens the repository in a sandbox (CodeSandbox).
* `.../pull/123` β `.../pull/123.diff` β Shows the Pull Request as a plain text `.diff` file.
* `.../pull/123` β `.../pull/123.patch` β Views the PR as a `.patch` file.
## π€ 10. URL Tricks (Profiles and Feeds)
* `github.com/username.keys` β Views the user's public SSH keys.
* `github.com/username.png` β Direct link to the profile picture.
* `github.com/username.atom` β RSS feed of the user's public activity.
* *Example:* `github.com/emellybmuniz.png`
## β¨ 11. Collaboration and Extras
* **Easter Egg:** Visit [api.github.com/octocat](https://api.github.com/octocat) to see the octocat mascot in ASCII art.
* **Blame View:** Click "Blame" within a file to see who last changed each line (or use the B shortcut).
* **Draft PRs:** Create Draft Pull Requests to collaborate without notifying the entire team.
* **Saved Replies:** Configure saved replies in Settings to speed up your code reviews (shortcut: Ctrl/Cmd + . + [number]).
* **Command Palette:** Use Ctrl/Cmd + K to quickly access actions without navigating menus.
* **File Tree:** In the new Code View, use the side file tree to easily navigate the repository structure.
* **Jump to Definition:** In over 10 languages, click on a symbol to automatically jump to its definition (no setup required).
* **Tab Navigation:** Use Ctrl/Cmd + 1-9 to switch between open tabs in the editor.
## π€ 12. GitHub Copilot (Bonus)
If you use GitHub Copilot in github.dev or VS Code:
* Tab β **Accept** suggestion.
* Alt/Option + ] β **Next** suggestion.
* Alt/Option + [ β **Previous** suggestion.
* Ctrl/Cmd + Enter β Force suggestion generation / Open suggestions panel.
* Ctrl/Cmd + I β Open **inline chat**.
* Esc β **Dismiss** suggestion.
* Alt/Option + \ β Trigger inline suggestion manually.
### Slash Commands in Copilot Chat
* `/fix` β Automatically fix errors.
* `/explain` β Explain selected code.
* `/tests` β Generate unit tests.
* `/docs` β Add/improve documentation.
* `/optimize` β Suggest performance improvements.
β **Liked this guide?** Leave a star on the repository to check it out later!
---
## π References
This guide was created based on:
* Official GitHub Documentation
* GitHub Blog ([github.blog])(https://github.blog/)
* Developer communities ([Dev.to](https://dev.to/), [Reddit](https://www.reddit.com/), [Stack Overflow](https://stackoverflow.com/))
* Practical user experience
* GitHub Code Search ([cs.github.com](https://github.com/search?type=code))
* VS Code and github.dev Documentation
## βοΈ Author
Developed by **Emelly Beatriz** with β€οΈ
π¬ Get in touch:
π§ emellybmuniz@gmail.com |
πΌ [Linkedin](https://www.linkedin.com/in/emellybmuniz) |
π [Github](https://github.com/emellybmuniz)
*Last updated: November 2025*