• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (deprecated)
You are here: Home / Archives for GitHub

GitHub

GitHub Tab Size Preference

Last updated on September 15, 2023 by Sal Ferrarello

As a WordPress developer, I deal with lots of code indented with tabs (rather than spaces). By default when viewing these files in GitHub, each tab is rendered as 8 spaces. On my personal machine, I render each tab as 4 spaces. This difference makes it less pleasant to view code in GitHub, however, I just learned I can set my preferred tab rendering in GitHub!

Filed Under: Dev Tips, Programming Tagged With: GitHub

GitHub Link to Commit instead of Branch

Last updated on August 15, 2023 by Sal Ferrarello

When linking to specific lines in a file to GitHub, it is preferable to link to those lines in the file for a specific commit (rather than for a specific branch). This is because the contents of a branch can change but the contents of a commit remain the same forever.

Filed Under: Computing, Dev Tips, Recommendations Tagged With: GitHub

Git alias 'git open-pr-github' and the webpage it opens to.

Git Alias Open Pull Request on GitHub

Last updated on December 1, 2022 by Sal Ferrarello

I want to be able to type “git open-github-pr” and have my browser open to the GitHub URL to create a Pull Request (PR) for my current branch on the current project I’m working on. Here is how I built this.

Filed Under: Dev Tips, Solution Tagged With: Git, git alias, GitHub

A physical collapsible folder.

Collapsible Section in GitHub Issue

Last updated on October 13, 2020 by Sal Ferrarello

I spend a lot of time working in issue trackers (e.g. GitHub), which involves writing a lot of markdown. Sometimes, perhaps I write too much information and it would be nice to allow the person reading to optionally skip some details. Traditionally, I accomplish this with a “Summary” section but now with collapsible sections in GitHub Issues, I can write even tidier comments.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Solution Tagged With: GitHub

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in