在Windows上出现Filename too long

git config --system core.longpaths true

如何配置SSH keys

在Git终端(Git Bash\Linux Command)中执行

ssh-keygen -t ed25519 -C "your_email@example.com"
如果您使用的是不支持 Ed25519 算法的旧系统,请使用以下命令:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

keygen过程中会确认key的存储位置、密码

将对应目录下的pub文件内容考到git仓库中SSH配置中去

git clone git@...git,如果在keygen过程中输入了密码,clone时也需要输入密码

如何提交PR

  • 先fork开源项目到自己的仓库中

  • git clone 自己的仓库

  • git remote add upstream https://github.com/apache/flink.git 与开源项目建立连接

  • git checkout -b xxx 分支

  • 修改代码

  • git commit

  • 在Push之前,先将代码更新到upstream仓库最新代码
    git fetch upstream
    git rebase upstream/master

  • push to 自己的仓库

  • New Pull request

参考文档:https://blog.csdn.net/vim_wj/article/details/78300239

git remote add upstream xxx.git

如何修改仓库分支

git remote set-url origin xxx.git
git push origin master

posted on 2021-06-15 16:11  j.liu windliu  阅读(49)  评论(0编辑  收藏  举报