Skip to content

Latest commit

Β 

History

History
60 lines (40 loc) Β· 2.19 KB

File metadata and controls

60 lines (40 loc) Β· 2.19 KB

πŸ” GitHub SSH & Automation Tools

DevKit includes GitHub utilities to manage SSH keys, automate Git workflows, and streamline branching, pushing, and tagging.

πŸ“‘ Table of Contents


πŸ”‘ SSH Key Utilities

  • github-ssh-list β€” List SSH keys in ~/.ssh/.
  • github-ssh-setup β€” Generate and configure SSH key for GitHub (port 443).
  • github-ssh-delete β€” Interactively delete SSH keys.
  • github-ssh-connection-test β€” Test SSH connection to GitHub.

πŸš€ Workflow Helpers

  • github-commit-and-push ["message"] β€” Commit all changes and push.
  • github-clear-cache-and-recommit-all-files β€” Reset Git cache and recommit.
  • github-undo-last-commit β€” Revert last commit from remote only.
  • github-version-bump β€” Create and push a new version tag (major, minor, patch, or custom). Shows the latest version and ensures a clean working state before tagging.

🌿 Branch Management

  • github-branch-rename <new> β€” Rename current branch locally and remotely.
  • github-branch-create <name> β€” Create and switch to a new branch.
  • github-branch-delete <name> β€” Delete local and/or remote branch.
  • github-branch-list β€” List local and remote branches.
  • github-branches-clean β€” Delete local branches merged into main.
  • github-reset-to-remote β€” Reset local branch to match remote (destructive).

πŸ“₯ Pulling, Tagging & Sync

  • github-stash-and-pull β€” Stash, pull, and reapply changes.
  • github-push-tag <tag> [message] β€” Create and push annotated tag.
  • github-rebase-current [target] β€” Rebase current branch (default: main).
  • github-sync-fork β€” Sync fork with upstream main branch.

πŸ“Š Git Info

  • github-status-short β€” Show current branch and short status.
  • github-open β€” Open GitHub repository in browser.

πŸš€ Pro tip: Automate common workflows like branch cleanup and sync for faster daily GitOps.