随笔分类 -  Git

摘要:git config --global color.status auto git config --global color.diff auto git config --global color.branch auto git config --global color.interactive 阅读全文
posted @ 2021-06-01 10:20 瞬_冷 阅读(191) 评论(0) 推荐(0)
摘要:1. 安装expect sudo apt-get install expect 2. 创建.sh脚本,并编写一下内容: #!/usr/bin/expectspawn git pull origin masterexpect "Username"send "username\n"expect "Pas 阅读全文
posted @ 2020-07-28 17:05 瞬_冷 阅读(685) 评论(0) 推荐(0)
摘要:1. 生成自己的SSH秘钥 ssh-keygen -t rsa -C "xxx@qq.com" 2. cd .ssh 3. cat id_rsa.pub ,然后就可以看到自己的秘钥了 4. 登录git, 找到SSH Keys配置,将自己的秘钥复制上去就好了 阅读全文
posted @ 2020-07-28 17:02 瞬_冷 阅读(213) 评论(0) 推荐(0)
摘要:1. 首先现在https://site.ip138.com上输入github.com,查询对应的IP地址 2. 修改C:\Windows\System32\drivers\etc\host 文件, 添加140.82.114.4(通过1查询到的IP地址) github.com 阅读全文
posted @ 2020-06-08 22:32 瞬_冷 阅读(267) 评论(0) 推荐(0)