Last active
May 19, 2022 02:12
-
-
Save wise-bit/79ee7fa06d75a4767ed2aebc6772d3bf to your computer and use it in GitHub Desktop.
Add existing folder to git
This file contains hidden or 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
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