Skip to content

Instantly share code, notes, and snippets.

@yinzara
yinzara / github_bitbucket_multiple_ssh_keys.md
Last active May 28, 2025 17:38
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.

@MartinWallgren
MartinWallgren / git-fixup
Last active June 16, 2025 11:33
Select a fixup commit using fzf
#!/bin/sh
function usage() {
echo "Git command to help you select which commit to create a fixup commit for."
echo ""
echo "The command will let you select a commit from a range and commit the current"
echo "staging area using the selected commit as argument to the --fixup= option. Any"
echo "extra options passed to this command will be forwarded to the git commit"
echo "command."
echo ""
echo "The range will be the current upstream to HEAD. If no upstream is set for the"