Get GIT remote url

Leave a Comment
Please use the following command to get remote URL

git config --get remote.origin.url

Step 2:

Open config file in the .git folder in your project folder.
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
	ignorecase = true
	precomposeunicode = true
[remote "origin"]
	url = ssh://git@github.com:7999/sample.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master
Where URL is the remote origin url.

0 comments:

Post a comment