Search code examples
ubuntu.git-folder

I want to change remote git url to example2.git in ubuntu


Here i am attaching my problem. I want my repository to be hairbodyskin-production. But it is not changing. It should not be cw-community.

enter image description here

I tried this `

git config remote.origin.url https://x-token-auth:ATCTT3xFfGN02teIasCShaVu_OFcBiXmEGz5eXTLrjSOrRtyaZt-OU3r0II2rUS58_5auPxITl-L7aEVEge-aCHSUOZI4Cl0fgEtHSAzgX9Gg75Zrn2_pC1s7966yjgp4M1n0IshRyjKkleqGl2rxttxe6gbaHbCExkW0gbSDzc2Z4JgZlqlSoM\[email protected]/cwdevelop/hairbodyskin-production.git

I also tried this

git config remote.origin.url --global https://x-token-auth:ATCTT3xFfGN02teIasCShaVu_OFcBiXmEGz5eXTLrjSOrRtyaZt-OU3r0II2rUS58_5auPxITl-L7aEVEge-aCHSUOZI4Cl0fgEtHSAzgX9Gg75Zrn2_pC1s7966yjgp4M1n0IshRyjKkleqGl2rxttxe6gbaHbCExkW0gbSDzc2Z4JgZlqlSoM\[email protected]/cwdevelop/hairbodyskin-production.git

`I also tried this

git remote set-url origin https://x-token-auth:ATCTT3xFfGN02teIasCShaVu_OFcBiXmEGz5eXTLrjSOrRtyaZt-OU3r0II2rUS58_5auPxITl-L7aEVEge-aCHSUOZI4Cl0fgEtHSAzgX9Gg75Zrn2_pC1s7966yjgp4M1n0IshRyjKkleqGl2rxttxe6gbaHbCExkW0gbSDzc2Z4JgZlqlSoM\[email protected]/cwdevelop/hairbodyskin-production.git

Nothing worked for me.


Solution

  • Look like you might have set your remote URL in the git global config file.

    Checkout this post to see if the steps there are able to resolve your problem.

    Using 'git remote add origin' creates a global remote instead of one local to current directory/repo