Git Reset Hard Branch Script

← Back to Projects

Git Reset Hard Branch Script

Tech Stack: Bash, Git

Finish Date: September 2, 2023

Final Output: Bash script with alias in local computer


I run this whenever I'm checking a team member's PR and my team member added more commits. Sometimes the rebase doesn't work as expected so it's just faster to reset my local version with the origin. Instead of remembering the command, I made a simple script that takes care of this.