Category: GitHub

How to Safely Revert a Commit on GitHub (Even Without a PR)

Pushed directly to a shared branch and something broke? Don’t rewrite history—revert it. This guide shows the safest ways to undo changes on GitHub without a PR: single commits, ranges, and merge commits, plus when (and when not) to use reset. We also cover using the GitHub “Revert” button, handling conflicts, and keeping an auditable trail via a quick PR.

Read More »

Undoing local Git commits you haven’t pushed (safely)

Made a few local commits and realized they aren’t quite right—and nothing’s been pushed yet? This guide shows exactly how to unwind safely. Choose to discard everything, keep your changes unstaged, or keep them staged for a clean recommit, with copy-pasteable git reset commands for each path. We also cover peeling back the last N commits, aborting merges/rebases, and using git reflog as a safety net. Quick checks (git log, git status, git diff) help you verify before and after.

Read More »

Sync a file from another branch via short PR (with gh)

Need to keep staging (or a release branch) aligned with a single change from main without merging everything else? This guide walks through a minimal-diff workflow using GitHub CLI: branch from the base, restore only the target file(s) from the source ref, commit, and open a PR. It’s perfect for CI workflows and configs, keeps review tidy, and respects protected branches—so you get the change you want without the surprises you don’t.

Read More »

Streamline Your Workflow with GitHub CLI (gh)

At Reliable Penguin, we often help developers and agencies optimize their development environments. One small but powerful tool we frequently recommend is the GitHub CLI—referred to as gh. It allows developers to manage GitHub tasks directly from the terminal, speeding up workflows and reducing context switching. This post explains what GitHub and the gh utility are, and provides clear installation steps to help you get started. What Is GitHub? GitHub is a cloud-based platform for hosting Git repositories. It is widely used by individuals, open source communities, and enterprises to: Collaborate on code in real time Manage issues, feature requests, and documentation Conduct code reviews and manage pull requests Automate CI/CD processes with GitHub Actions GitHub has become the standard for version control in modern software development. Introducing the GitHub CLI (gh) While GitHub’s web interface is powerful, there are many tasks developers can complete more efficiently from the command

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.