Git Set Remote Repo And Push Code Example


Example 1: git remote add


git remote add origin https://github.com/user/repo.git

Example 2: git connect to remote repository


git init
git commit -m "[message]"
git remote add origin "github repository link"
git push -u origin master

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable