Created
November 8, 2020 00:50
-
-
Save zmarffy/630ac40754087a201e9c78092ff722d8 to your computer and use it in GitHub Desktop.
Start over on `git`
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
#! /usr/bin/env bash | |
mainBranch=$1 | |
remote=$2 | |
sudo rm -r .git && git init && git remote add origin $remote && git add --all && git commit -m "first commit" -a && git push -u origin $mainBranch --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment