git setup remote origin code example
Example 1: get git remote url
git config --get remote.origin.url
Example 2: github add new origin
git init .
git remote add origin <http/someURL>
git pull origin master
Example 3: git connect to remote repository
git init
git commit -m "[message]"
git remote add origin "github repository link"
git push -u origin master