Just My Life & My Work

Archive for 2017 年 07 月 09 日

[Git] Git查詢Repository位址

這幾個月還滿常Git查詢Repository位址,還是把它記錄下來好囉~看SO有超過2000顆星,看來重要性很高!

原因是除了公司擁有的Repository,還有GitHubBitbucket等空間,突然想要重抓就必須知道位置,只是一行指令,不過我沒有特別記憶,未來就直接複製來用吧~

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?

標籤雲