How to set up Git with remote URL

How to set up Git with remote URL

How to set up Git with remote URL


Installing Git Command with Bash

git init

git add .

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

git commit -m "first commit message"

If you want your credential to be saved, only then use the command given below. It will save your credentials in plain format. It is not recommended to use this command.

git config credential.helper store

git push origin master

Username: <type your username>

Password: <type your password>

If the above command gives you an error, then try

git pull origin master

Share: