Posts Tagged ‘GIT’

Change remote on Git

You will need it for example if you change your repository provider. git remote set-url origin ssh://newhost.com/usr/local/gitroot/myproject.git Other way is to Edit the .git/config file in your working directory. You should see something like: [remote “origin”] fetch = +refs/heads/*:refs/remotes/origin/* url = ssh://oldhost.com/usr/local/gitroot/myproject.git

Read More