获取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 ..." to update what will be committed)
(use "git restore ..." 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

你可能感兴趣的:(获取git本地仓库地址)