This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |