Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add git 使用指南 #1674

Closed
ouuan opened this issue Sep 6, 2019 · 10 comments · Fixed by #2627
Closed

add git 使用指南 #1674

ouuan opened this issue Sep 6, 2019 · 10 comments · Fixed by #2627
Assignees
Labels
Content Request / 内容请求 New feature or request Discussion / 需要讨论 Further discussion is welcome div. 1 new page

Comments

@ouuan
Copy link
Member

ouuan commented Sep 6, 2019

首先,十分欢迎你来给 OI WIki 开 issue,在提交之前,请花时间阅读一下这个模板的内容,谢谢合作!

  • 希望添加的是什么?

git 使用指南

  • 英文叫什么?

git-guidebook

  • 有什么参考资料?

https://git-scm.com/docs
https://git-scm.com/book/zh/v2

issue 标题请写为 'add ' + 要添加的内容

然后可以在 htc 里 link 一下。(我刚开始写 Wiki 的时候就不知道怎么做到“一个 pr 只干一件事”)

@StudyingFather
Copy link
Member

也许可以考虑把窝之前在洛谷日报上的投稿搬运过来QAQ(不过那个写的有点烂/kk)

@ouuan
Copy link
Member Author

ouuan commented Sep 6, 2019

也许可以考虑把窝之前在洛谷日报上的投稿搬运过来QAQ(不过那个写的有点烂/kk)

感觉海星。

@Xeonacid
Copy link
Member

Xeonacid commented Sep 6, 2019

https://learngitbranching.js.org/ 好(

An interactive Git visualization tool to educate and challenge!

@abc1763613206
Copy link
Member

abc1763613206 commented Sep 6, 2019

这里有些 IBM Developer 的 git 教程,我觉得也能参考一下(
https://www.ibm.com/developerworks/cn/opensource/os-cn-git-and-github-1/index.html
https://www.ibm.com/developerworks/cn/opensource/os-cn-git-and-github-2/index.html
https://www.ibm.com/developerworks/cn/opensource/os-cn-git-and-github-3/index.html
https://www.ibm.com/developerworks/cn/opensource/os-cn-git-and-github-4/index.html
https://www.ibm.com/developerworks/cn/opensource/os-cn-git-and-github-5/index.html

本文介绍了 Git 和 GitHub 入门知识以及二者的区别与联系,并着重通过一系列实验来介绍了 Git 的基础特性:分布式版本控制、快照特性、本地操作特性、SHA1 哈希值记录底层数据对象等。此外,本文还简单梳理了 GitHub 的功能。
本文通过实验讲解了如何通过 HTTPS 和 SSH 两种方式连接 GitHub 克隆代码库,如何使用 Git 克隆(git clone)远端代码库,以及进行 Git 的基本配置(git config),并讲解了配置 .gitignore 文件来管理文件忽略提交规则。
本文主要讲解了 Git 的三个工作区和工作状态,Git 的分支技术以及 origin 仓库,HEAD 指针,通过这些 Git 的原理,帮助您在日常工作中能更好地理解 Git 的操作。同时还介绍了 Git 和 GitHub 一些日常操作,包括分支的创建和删除、提交代码的流程、log、status、diff 操作等。
文章讲解了 Git 的进阶操作,包括使用 git diff 命令比较不同的分支,git revert 命令进行回滚,git reset 命令进行撤销和代码的恢复,如何进行分支合并、合并时的一些特殊情况例如 cherry-pick、fast-forward 等,同时文章还对避免冲突产生给出了实践上的建议。
本文介绍了 Git 分支管理的重要性以及业内常用的两种分支策略:Git Flow 和 GitHub Flow。在文章最后部分,简要介绍了两种分支策略各种适用的场景。

@ouuan
Copy link
Member Author

ouuan commented Sep 7, 2019

(我把 Learn Git Branching 打通了)

@ouuan ouuan added the Content Request / 内容请求 New feature or request label Sep 7, 2019
@AngelKitty
Copy link
Member

AngelKitty commented Sep 12, 2019

也许这些也可以作为参考:
https://github.com/521xueweihan/git-tips
https://progit.bootcss.com/

GitHub
:trollface:Git的奇技淫巧. Contribute to 521xueweihan/git-tips development by creating an account on GitHub.
Pro Git (第二版)是一本详细的 Git 指南,主要介绍了 Git 的使用基础和原理,让你从一个 Git 初学者成为 Git 专家。 Git 最初是由 Linus Torvalds 为 Linux 内核开发而创造的。

@partychicken
Copy link
Member

等等,我们维护的是oi-wiki吧。。。
git使用指南是smg

@ouuan
Copy link
Member Author

ouuan commented Oct 9, 2019

等等,我们维护的是oi-wiki吧。。。
git使用指南是smg

htc 的补充内容

然后可以在 htc 里 link 一下。(我刚开始写 Wiki 的时候就不知道怎么做到“一个 pr 只干一件事”)

@ouuan
Copy link
Member Author

ouuan commented Nov 7, 2019

mark 一下:

  1. htc 加入 commit suggestion 指南(add to batch)。
  2. htc 加入折叠框中代码空行保留四空格提醒。

@ouuan
Copy link
Member Author

ouuan commented Jul 13, 2020

群内讨论备忘:

图片

图片

图片

图片

图片

图片

图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content Request / 内容请求 New feature or request Discussion / 需要讨论 Further discussion is welcome div. 1 new page
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants