2014年12月8日 星期一

[Git][Bitbucket] Modify remote URLs to another

Already have a Git repository on your computer? Let’s push it up to Bitbucket.
1. cd /path/to/my/repo
2. git remote set-url origin https://happy@bitbucket.org/happy/happy.git
3. git push -u origin –all # pushes up the repo and its refs for the first time
4. git push -u origin –tags # pushes up any tags
Update local repository finish now.


Reference :
1. Changing a remote’s URL

Related Posts:

0 意見:

張貼留言