Publish local repository to Github using https

Follow below steps to push local repository to github


Create new empty repository on github
Please make sure you do not select Initialize this repository with a README checkbox


If you want to create new local repository

echo "# any comment you want to add" >>
git init
git add .
#git add  # this works as well
git commit -m "first commit"
git remote add origin
git push -u origin master 

Last step will ask you forĀ  Github userid and password.
It will take some time to upload your changes to github depending on size of your changes. Once this is completed, go yo github and verify.


Leave a Reply

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