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

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy