Uploading code to GitHub

Initializing Github and adding a repository

git init
git add .
git commit -m “First commit”
 
git remote add origin remote repository URL
git remote -v
git push origin master
 
If not working
git fetch origin master
 
git push origin master --force

Posted in Uncategorized.

Leave a Reply

Your email address will not be published. Required fields are marked *