check git repository code example
Example 1: git command to get the repo url
git remote show origin
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