首页 > 编程知识 正文

git bash安装教程,git命令下载代码

时间:2023-05-03 10:28:37 阅读:147605 作者:1900

正在创建中央存储库的gitosis post-push hook

更新将从中央存储库提取到测试环境中

nano/var/git/repositories/holding.git/hooks/post-update

#! /粗鲁的大衣/bash

cd /var/vh/holding;

git reset --hard;

git checkout testing;

git pull;

这是我在推送客户端后获得的(虚拟机开发) )。

# blah .

Counting objects: 57,done。

compressing objects :100 % (24/24 ),done

writingobjects:100%(30/30 )、3.42 KiB和done。

total30(Delta18 ),reused0(delta0)。

fatal : notagitrepository : '.'

fatal : notagitrepository : '.'

fatal : notagitrepository : '.'

fatal : notagitrepository : '.'

To git@cheby.ru:holding.git

233 b5 a2 . 0f 46 CD8testing-testing

很明显,我试图告诉git应该在哪里拉,但是失败了。

对bash脚本中指定的工作副本执行git命令的正确方法是什么?

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。