Guided screens
pushwarden ui walks you through cleaning your GitHub repositories on screens. You move with the keyboard. Nothing is changed until you confirm.
Open it
| System | How |
|---|---|
| Windows | PushWarden in the Start menu |
| macOS | PushWarden in ~/Applications (the first time, allow it to control Terminal) |
| Linux | run pushwarden ui in a terminal |
Git must be installed.
The five steps
- Sign in. It finds accounts you already use:
GITHUB_TOKEN, yourghlogins and your SSH logins. One account is used automatically. With several you pick one. With none it shows how to create a token. - Choose repositories. Nothing is ticked at first. Tick the ones to check.
- Check. Each repository is downloaded and every branch is scanned. Nothing is changed.
- Review. You see every infected branch and the files that would be fixed.
- Fix and push (Pro). Press Enter, then
y. Each infected branch gets one normal commit. History is not rewritten.
Fixing needs Pro. Without it, the review ends with a note and nothing changes.
Keys on the repository list
| Key | What it does |
|---|---|
| Up, Down | move |
| Space | tick or untick |
a / n |
tick all / none |
u |
tick repositories not checked yet |
c |
recheck from scratch: the ticked repositories are checked branch by branch again, ignoring earlier results (like --fresh, but only for them) |
l |
tick repositories cloned on this computer |
/ |
filter by name |
f |
show or hide forks and archived repositories |
+ |
add a repository by name (SSH accounts) |
s |
switch account |
| Enter | start the check |
q |
quit |
More than one account
Clean one account, then press s to switch to the next. To make an account appear:
- set up an SSH key for it in git, or
- run
gh auth loginfor it, or - choose Use another token and paste one (kept until you close the program, never saved).
SSH accounts
SSH can download and push a named repository, but it cannot list your repositories. So the list contains your clones on this computer, the account’s public repositories and any names you add with +. For a complete clean-up of private repositories, use a token.
Stop and continue
q or Ctrl+C stops cleanly. Finished work is saved, and the next run skips what is already checked. It shares its progress with github-clean, so you can switch between the two. pushwarden ui --fresh starts over for everything; press c on the list to start over for just the repositories you ticked.
After the fix
- Change the token and any secret those repositories could read.
- Check GitHub Settings, Applications and Deploy keys.
- Tell your team to
git pull.
Remember
- It always checks first and asks before fixing.
- Your token is used for this run only and is never saved.
- A push GitHub refuses (protected branch) is reported, never forced.
- For scripts, CI or choosing branches, use github-clean.