how to get origin from url code example
Example 1: javascript get origin url
console.log(window.location.origin);
Example 2: how to get remote origin url
git config --get remote.origin.url
Save to mem.dev
console.log(window.location.origin);
git config --get remote.origin.url
Save to mem.dev