這幾個月還滿常Git查詢Repository位址,還是把它記錄下來好囉~看SO有超過2000顆星,看來重要性很高!
原因是除了公司擁有的Repository,還有GitHub和Bitbucket等空間,突然想要重抓就必須知道位置,只是一行指令,不過我沒有特別記憶,未來就直接複製來用吧~
git config –get remote.origin.url
就會顯示如下的結果:
https://HappyMan@bitbucket.org/happystudio/happymall-ios.git
祝開發愉快:)~
參考:How can I determine the URL that a local Git repository was originally cloned from?。
隨意留個言吧:)~