Fix: ssh: connect to host github.com port 22: Connection timed out


A terminal showing an SSH connection to github.com on port 22 timing out.

Your network blocks SSH on port 22, not your key. Route GitHub over ssh.github.com on port 443, make it permanent in ssh config, and verify with git.

Fix: Support for Password Authentication Was Removed


A terminal showing a git push rejected because password authentication is not supported.

GitHub rejects your Git password over HTTPS. Switch the remote to SSH, or create a personal access token and store it, so pushes stop asking.

Fix: src refspec main does not match any


A terminal showing git push origin main answering with error: src refspec main does not match any.

Git rejects the push with "src refspec main does not match any". Four causes: no commit yet, a different branch name, a typo, and nothing committed.

What Are Conventional Commits?


Learn how conventional commits can transform your Git workflow from chaotic to organized, making your project history readable and your releases automated.

Fix: Push Declined Due to Email Privacy Restrictions


GitHub rejects the push because your commit email is private. Set the GitHub noreply address, repair the commits you already made, and push again.

How to Use Multiple GitHub Accounts on the Same Computer: Complete Guide


Learn how to manage multiple GitHub accounts on one computer using SSH keys. Includes step-by-step instructions, shell functions, and best practices for macOS.

Learn GitHub


Learn GitHub to supercharge your development process. GitHub is the premier code management tool, and it keeps getting better.