随笔分类 -  Git

Git commands & usages etc.
摘要:1 git filter-branch -f --commit-filter ' 2 if [ "$GIT_AUTHOR_EMAIL" = "wrong@email.com" ]; 3 then 4 GIT_AUTHOR_NAME="correct_name"; 5 GIT_AUTHOR_EMAIL 阅读全文
posted @ 2021-02-26 17:15 Joynic 阅读(185) 评论(0) 推荐(0)
摘要:执行: git config --system core.longpaths true 阅读全文
posted @ 2020-04-30 11:26 Joynic 阅读(608) 评论(0) 推荐(0)
摘要:ssh-keygen 使用的时候可以直接使用 -f 参数 指定密钥保存文件,省去后面生成成功后再提示选择保存文件: ssh-keygen -t rsa -C "abc@example.com" -f ~/.ssh/id_rsa windows git bash 使用 SSH-add命令: 先启动ag 阅读全文
posted @ 2017-06-01 11:28 Joynic 阅读(2300) 评论(0) 推荐(0)
摘要:$ ssh-add id_rsa_bitbucketCould not open a connection to your authentication agent. 运行: $ ssh-agent bash 然后: $ ssh-add id_rsa_bitbucketIdentity added: 阅读全文
posted @ 2017-03-05 17:31 Joynic 阅读(187) 评论(0) 推荐(0)
摘要:每次切换分支: git ckeckout branch_name 等命令费时又费力,git 别名配置起来: 别名配置: git config --global alias.ck ckeckout 其他一些命令push pull配置类似 阅读全文
posted @ 2017-03-05 17:25 Joynic 阅读(1065) 评论(0) 推荐(0)