#!/bin/zsh # go to the root of the repository cd "$(git rev-parse --show-toplevel)" # reset the repository to the main branch and clean it git reset --hard git clean -fdx -e .env/ -e .idea/