Skip to content

Instantly share code, notes, and snippets.

@theoknock
Created November 26, 2024 20:27
Show Gist options
  • Save theoknock/b50686bddc309a80fef226e5d0534962 to your computer and use it in GitHub Desktop.
Save theoknock/b50686bddc309a80fef226e5d0534962 to your computer and use it in GitHub Desktop.
ZSH for deleting the existing local repo for an Xcode project, creating a new repo (locally and remotely), and then performing the setup and initial commit
cd ~/Desktop / PlanetaryHoursSwift
sudo ls -l
sudo rm -rf .git
sudo ls -a
git init
git add .
git commit -m "Initial commit"
git remote add origin https: // github.com/theoknock/PlanetaryHoursSwift.git
git push -u origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment