linux - 在 AWS Code Commit 中使用用户名和密码进行 Git pull/克隆

标签 linux git bash jenkins aws-codecommit

我需要使用 https url 作为单行命令执行 git pull。我需要将此命令集成到 bash 脚本中。但它一直在询问用户名和密码。

存储库位于 AWS codecommit

最佳答案

试试这个:

git clone https://username:password@git-codecommit.us-east-1.amazonaws.com/v1../repos../..

这种方式适用于我的 CodeCommit (AWS) 存储库

关于linux - 在 AWS Code Commit 中使用用户名和密码进行 Git pull/克隆,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46823193/

相关文章:

bash - AWS 配置 Bash One Liner

java - 无法在 Mac OSX 上设置 Maven

c++ - 防止 Windows 程序将 ^Z 解释为文件结尾

linux - 亚马逊 Linux : "apt-get: command not found"

linux - y86模拟器(csapp)安装失败

pull 请求的 git-blame

linux - 使用新驱动模块交叉编译 Linux Arm 内核

git - 为什么 git 使用 2 个不同的命令来显示 HEAD?

混帐 rebase 。我如何使用它来折叠大量的古代提交

linux - bash PS1 : line wrap issue with non-printing characters from an external command