美文网首页
获取git本地仓库地址

获取git本地仓库地址

作者: 温水煮青蛙a | 来源:发表于2021-04-02 16:28 被阅读0次

//获取本地库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

相关文章

网友评论

      本文标题:获取git本地仓库地址

      本文链接:https://www.haomeiwen.com/subject/holqkltx.html