Create a new repository on GitHub. To avoid errors, do not initialize the new repository with README, license or gitignore fields.
git init
git add .
git commit -m "initial commit"
git remote add origin <remote repository URL>
# Sets the new remote
git remote -v
# Verifies the new remote URL
git pull origin master
git push -u origin master
git init
git add .
git commit -m "initial commit"
git remote add origin <remote repository URL>
# Sets the new remote
git remote -v
# Verifies the new remote URL
git pull origin master
git push -u origin master
No comments:
Post a Comment