赞
踩
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成功
- 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
- Enumerating objects: 13, done.
- Counting objects: 7% (1/13)
- Counting objects: 15% (2/13)
- Counting objects: 23% (3/13)
- Counting objects: 30% (4/13)
- Counting objects: 38% (5/13)
- Counting objects: 46% (6/13)
- Counting objects: 53% (7/13)
- Counting objects: 61% (8/13)
- Counting objects: 69% (9/13)
- Counting objects: 76% (10/13)
- Counting objects: 84% (11/13)
- Counting objects: 92% (12/13)
- Counting objects: 100% (13/13)
- Counting objects: 100% (13/13), done.
- Delta compression using up to 8 threads
- Compressing objects: 16% (1/6)
- Compressing objects: 33% (2/6)
- Compressing objects: 50% (3/6)
- Compressing objects: 66% (4/6)
- Compressing objects: 83% (5/6)
- Compressing objects: 100% (6/6)
- Compressing objects: 100% (6/6), done.
- Writing objects: 14% (1/7)
- Writing objects: 28% (2/7)
- Writing objects: 42% (3/7)
- Writing objects: 57% (4/7)
- Writing objects: 71% (5/7)
- Writing objects: 85% (6/7)
- Writing objects: 100% (7/7)
- Writing objects: 100% (7/7), 721 bytes | 721.00 KiB/s, done.
- Total 7 (delta 4), reused 0 (delta 0), pack-reused 0
- remote: Resolving deltas: 0% (0/4)
- remote: Resolving deltas: 25% (1/4)
- remote: Resolving deltas: 50% (2/4)
- remote: Resolving deltas: 75% (3/4)
- remote: Resolving deltas: 100% (4/4)
- remote: Resolving deltas: 100% (4/4), completed with 4 local objects.
- To https://github.com/viviliving/LibrarySystem.git
- refs/heads/master:refs/heads/master b8aa93e..3fc1c8c
- Done
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。