git checkout stable-2.5 报错

来源:3-3 Ansible配合virtualenv安装配置

慕标4577186

2020-07-02

命令:(.py3-a2.5-env) [deploy@ansible ansible]$ git checkout stable-2.5
报错:fatal: Not a git repository (or any of the parent directories): .git

写回答

3回答

慕标4577186

提问者

2020-07-02

老师,我是从git bash  下载到桌面, 然后从桌面传到ansibel  虚拟机,我重新在ansible 虚拟机git clone 了,就可以了,是我的失误,谢谢老师。

1
0

Edward_han

2020-09-21

用这个下载快  git clone https://gitee.com/mirrors/ansible.git

而且

git checkout stable-2.5

没问题

0
0

一路向北

2020-07-02

这个ansible是git clone 下来的 还是其他方式下载下来的?

0
2
一路向北
有两种方式进行ansible源码安装 一种是直接下载对应版本的zip包,下下来直接使用即可 不需要切换分支 另外一种就是需要git clone下来ansible所有版本的源代码 这个方法下下来 需要进行版本切换 也就是 git branch后才能正常使用
2022-03-07
共2条回复

Jenkins+Ansible+Gitlab-三剑合璧掌握自动化部署

整合三大工具解决自动化部署&持续交付问题

1290 学习 · 319 问题

查看课程