Remote URL
Checking remote URL of your current working folder is a task which we need sometimes to check; so here are few git command which display the remote URL name;
Note:
- The command and output are derived from Ubuntu and within VS Code ; your output may vary
- adding output along with command; command start with
>in below examples
TL;DR
If you are in hurry then just use any of below command; it will do the job
> git remote -v> git remote show origin> git remote get-url origin> git ls-remote --get-url> git config --get remote.origin.urlApproach 1
> git remote -vApproach 2
> git remote show origin
* remote origin HEAD branch: main Remote branches: feature tracked main tracked react tracked react-workshop tracked refs/remotes/origin/zeroPoint/react stale (use 'git remote prune' to remove) zeroPoint/parcel tracked Local branch configured for 'git pull': react-workshop merges with remote react-workshop Local ref configured for 'git push': react-workshop pushes to react-workshop (up to date)Approach 3
>git config --get remote.origin.url
[email protected]:xkeshav/workshop.gitApproach 4
>git remote get-url origin
[email protected]:xkeshav/workshop.gitApproach 5
> git ls-remote --get-url
[email protected]:xkeshav/workshop.git