问题:需要在windows中直观地查看Git历史,存储库在远程Linux服务器(Ubuntu)上。问:在Windows中查看远程linux服务器->上的git存储库有哪两种简单的方法?
我最初尝试镜像远程镜像,然后在本地查看-需要时更新,但在连接时出现错误。
git clone --mirror username@serveraddress.com:/home/username/projectfolder
fatal: Could not read from remote repository.
Please make sure you have the correct access
我正在尝试配置我的Jenkinsfile,以便我的主jenkins进入远程ec2服务器并在远程服务器上运行命令。到目前为止,我将我的主jenkins服务器公钥添加到远程ec2服务器的authorized_keys列表中,并且我能够将ssh添加到远程服务器中。我的Jenkinsfile的相关部分:
echo "===> about to SSH into the dev environment.."
sh '''#!/bin/bash
echo "===> in bash script now"
在连续部署上下文中,我执行了一个shell脚本,用于在远程服务器中更新和重新启动我的应用程序。
剧本是:
ssh user@myserver <<'ENDSSH'
cd /opt/myapp
git pull
npm i
forever stop src
npm run staging
ENDSSH
产出如下:
stdin: is not a tty
Already up-to-date.
-bash: line 3: npm: command not found
-bash: line 4: forever: command not found
-bash: li