version: "3"
services:
mongo:
image: mongo
working_dir: /c/data/
ports:
- 27017:27017
deploy:
replicas: 1
volumes:
- /c/data/:/data/db
Run Code Online (Sandbox Code Playgroud)
我在上面的堆栈文件中尝试过,但我收到退出代码 14 错误,请给我有关错误的解决方案,
我看到一些人在奔跑:
git clone <url>
git pull
Run Code Online (Sandbox Code Playgroud)
我个人只git clone <url>为所有项目工作而奔波。
我在文档中读到以下内容:
After the clone, a plain git fetch without arguments will update all the remote-tracking branches, and a git pull without arguments will in addition merge the remote master branch into the current master branch, if any (this is untrue when "--single-branch" is given; see below).
Run Code Online (Sandbox Code Playgroud)
但这并没有真正给我一个理由。
我的问题是:git pull当我第二次克隆该项目时,附加值是什么?我应该始终运行git pull为好后git clone <url>?
谢谢