当前位置:   article > 正文

github参与开源项目并上传修改_github往开源软件里上传自己的修改

github往开源软件里上传自己的修改

1、找到开源github项目页面

比如我找到的这个

https://github.com/zhanghuanhao/LibrarySystem

2、开源项目没有权限在人家项目上无法pull的,不然pull老报错403

点击fork,进入点击create new  fork到你的github下

 

3、然后到你的github页面

https://github.com/viviliving/LibrarySystem

就有这个项目了

 

4、git clone到本地,修改然后comit pull  push即可

pull如果报错443,那是因为github不支持老的username:password方式,采用了token方式,你需要申请一个自己的token,我申请了个不限时间的

 

 

然后把你本地项目.git下的config里改一下

 

 然后idea的push时,登录认证选择token方式

 pull成功

  1. 17:40:57.973: [LibrarySystem] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/master:master
  2. Enumerating objects: 13, done.
  3. Counting objects: 7% (1/13)
  4. Counting objects: 15% (2/13)
  5. Counting objects: 23% (3/13)
  6. Counting objects: 30% (4/13)
  7. Counting objects: 38% (5/13)
  8. Counting objects: 46% (6/13)
  9. Counting objects: 53% (7/13)
  10. Counting objects: 61% (8/13)
  11. Counting objects: 69% (9/13)
  12. Counting objects: 76% (10/13)
  13. Counting objects: 84% (11/13)
  14. Counting objects: 92% (12/13)
  15. Counting objects: 100% (13/13)
  16. Counting objects: 100% (13/13), done.
  17. Delta compression using up to 8 threads
  18. Compressing objects: 16% (1/6)
  19. Compressing objects: 33% (2/6)
  20. Compressing objects: 50% (3/6)
  21. Compressing objects: 66% (4/6)
  22. Compressing objects: 83% (5/6)
  23. Compressing objects: 100% (6/6)
  24. Compressing objects: 100% (6/6), done.
  25. Writing objects: 14% (1/7)
  26. Writing objects: 28% (2/7)
  27. Writing objects: 42% (3/7)
  28. Writing objects: 57% (4/7)
  29. Writing objects: 71% (5/7)
  30. Writing objects: 85% (6/7)
  31. Writing objects: 100% (7/7)
  32. Writing objects: 100% (7/7), 721 bytes | 721.00 KiB/s, done.
  33. Total 7 (delta 4), reused 0 (delta 0), pack-reused 0
  34. remote: Resolving deltas: 0% (0/4)
  35. remote: Resolving deltas: 25% (1/4)
  36. remote: Resolving deltas: 50% (2/4)
  37. remote: Resolving deltas: 75% (3/4)
  38. remote: Resolving deltas: 100% (4/4)
  39. remote: Resolving deltas: 100% (4/4), completed with 4 local objects.
  40. To https://github.com/viviliving/LibrarySystem.git
  41. refs/heads/master:refs/heads/master b8aa93e..3fc1c8c
  42. Done

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/572665
推荐阅读
相关标签
  

闽ICP备14008679号