Skip to content

Instantly share code, notes, and snippets.

View remulocosta's full-sized avatar
🎯
Focusing

Remulo Costa remulocosta

🎯
Focusing
  • Brasil
View GitHub Profile
@Zoybean
Zoybean / fix-git
Last active December 5, 2023 05:37
For when you've got a local git repo that's just too hard to recover
#!/bin/bash
# Author: Zoey Llewellyn "Zobean" Hewll
#
# Usage: fix-git [REMOTE-URL]
# Must be run from the root directory of the repository.
# If a remote is not supplied, it will be read from .git/config
#
# For when you have a corrupted local repo, but a trusted remote.
# This script replaces all your history with that of the remote.