持续集成

Git

第一次使用,需要设置个人信息:

git config --global user.email "email@example.com"
git config --global user.name "Your Name"

SSH 生成公钥/私钥

ssh-keygen -t rsa -C "xxxxxxx@xx.com"

过程:

Enter file in which to save the key (C:\Users\86158/.ssh/id_rsa):
保存公钥密钥的位置:默认不输入就可以,

Enter passphrase (empty for no passphrase):
Enter same passphrase again:
重点(直接回车,不需要设置):git的安全口令,与github和gitee无关。如果想要在clone、pull、push时输入密码,可以设置

HTTPS PUSH 报错

PS E:\PyProject\hhhhhhh\interface\test_0124> git push https://gitee.com/test_0124.git
remote: [session-8149fea5] 18701439@qq.com: Incorrect username or password (access token)
fatal: Authentication failed for 'https://gitee.com/test_0124.git/'

原因:git 操作时 之前设置的gitee密码不对

解决:

jenkins 构建 - Build periodically

https://chaiyingchao.blog.csdn.net/article/details/106143432

posted @ 2022-01-25 10:56  chuangzhou  阅读(51)  评论(0)    收藏  举报