获取git本地仓库地址

//获取本地库git url

AAA@MacBook-Pro ~ % cd /Users/AAA/Desktop/app-mobile
AAA@MacBook-Pro app-mobile % ls

Archive Error.docx build pubspec.lock
Dockerfile ios pubspec.yaml
README.md lib test
android local.properties
assets plugins

AAA@MacBook-Pro app-mobile % git status

On branch develop
Your branch is up to date with 'origin/develop'.

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: lib/app/pages/widget/map_page.dart
modified: lib/app/pages/widget/map_page.dart
modified: pubspec.lock
modified: pubspec.yaml

no changes added to commit (use "git add" and/or "git commit -a")

AAA@MacBook-Pro app-mobile % git remote

origin

AAA@MacBook-Pro app% git remote -v

origin https://xxx.com/app-mobile.git (fetch)
origin https://xxx.com/app-mobile.git (push)
AAA@MacBook-Pro app-mobile %

这就是git的url
https://xxx.com/app-mobile.git
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容