Q:

git remote list

 git config --get remote.origin.url
1
git remote show origin
0
git remote add origin <repository url> # adds a repo to your project

git remote								# lists all the repos of your project
git config --get remote.origin.url		# prints the url of a repo
git push origin master					# updates the master branch of your repo

git remote remove origin				# removes the repo from your project
4
git config --get remote.origin.url
0
# when you are not connected to the network, you can use this
git config --get remote.origin.url
5
git remote add heroku https://git.heroku.com/arrecs.git
git remote -v
-> heroku	https://git.heroku.com/arrecs.git (fetch)
-> heroku	https://git.heroku.com/arrecs.git (push)

git remote remove heroku
git remote -v
10
git init
git commit -m "[message]"
git remote add origin "github repository link"
git push -u origin master
0

New to Communities?

Join the community