Skip to content

Instantly share code, notes, and snippets.

@joeyguerra
Created November 7, 2021 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeyguerra/9db5523d107f1a66d18da45d4867a72d to your computer and use it in GitHub Desktop.
Save joeyguerra/9db5523d107f1a66d18da45d4867a72d to your computer and use it in GitHub Desktop.
New Github project with existing code on local machine
#!/bin/zsh
# example run: ./init.sh git@github.com:joeyguerra/100-days-of-code.git
git init
git remote add origin $1
git add .
git commit -m "initial commit"
git push -u origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment