一、关于Forked
forked的意思是从别人的代码库中复制一份到你自己的代码库,与普通的复制不同,fork包含了原有库中的所有提交记录,fork后这个代码库是完全独立的,属于你自己,你可以在自己的库中做任何修改,当然也可以通过Pull Request向原来的库提交合并请求。
比如:
①点击Forked

②会弹出选择目标空间,选择自己的空间

③会自动复制到自己的仓库

?二、用Git克隆到本地、修改和上传
什么是Git?
Git 是一个免费并且开源的分布式版本控制系统,旨在快速高效地处理从小到大所有项目的版本管理。
Git 非常容易学习,低植入,高性能。因为拥有轻量的本地分支,易用的暂存区,和多工作流的特点,它超越了类似Subversion, CVS,Perforce和ClearCase的其他的 SCM 工具。
怎么使用?
①选择想要放置的目录,右键选择Git Bash Here

②到gitee里面按这个步骤复制ssh(记住复制自己刚刚fork过来的,自己仓库里面的)

?③在Git Bash里面输入git clone 加上你刚刚复制的ssh,点击回车,会进行克隆,克隆成功会显示这个,这个指令的意思是将一个库复制到你的本地

?④进入你刚刚克隆下来的文件夹里面更改你要改的数据

?⑤重新上传,选中文件夹并点击Git Bash Here

⑥在Git Bash输入 git add .(注意这个.)这个指令的意思可将该文件添加到暂存区

⑦输入git commit -m 'my first'(这个''里面写你的描述)这个指令的意思是将暂存区的内容提交到本地版本库的当前分支
?
⑧输入git push origin master ,这个命令的意思是命令将本地的master分支推送到origin主机,即开始上传,下面这个是成功的图

?⑨回到Gitee,点击Pull Requests,这里要注意,一定要是点击自己仓库里面的,然后点击新建,即可提交

?⑩注意提交时写清楚改动了什么,然后再次确认一下文件改动是不是你刚刚改的

?最后点击创建即可提交,等待审核

?总结
如果有一步报错,都可以自己去搜索或者询问大佬,最好先自己寻找,记录自己成长的每一步
新手写文章,若文章有啥错误,请各位大佬指出,谢谢!
|