Skip to content

Instantly share code, notes, and snippets.

@wise-bit
Last active May 19, 2022 02:12
Show Gist options
  • Save wise-bit/79ee7fa06d75a4767ed2aebc6772d3bf to your computer and use it in GitHub Desktop.
Save wise-bit/79ee7fa06d75a4767ed2aebc6772d3bf to your computer and use it in GitHub Desktop.
Add existing folder to git
git init
git add -A
git commit -m "Added initial project files"
git branch -M main
git remote add origin [email protected]:user/new-project.git
git push -u -f origin main
# if required:
git pull origin main --allow-unrelated-histories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment