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

lab0/git/ #5

Open
utterances-bot opened this issue Mar 30, 2023 · 2 comments
Open

lab0/git/ #5

utterances-bot opened this issue Mar 30, 2023 · 2 comments

Comments

@utterances-bot
Copy link

二:Git - USTC OSH 2023 课程主页

https://osh-2023.github.io/lab0/git/

Copy link

iBug commented Mar 30, 2023

小修小改:Git 部分建议不要混用 ~^,除非需要处理 merge commit 的情况,否则统一用 ~ 比较好。

-`HEAD` 的上一个版本是 `HEAD^`,上上一个版本就是 `HEAD^^`
+`HEAD` 的上一个版本是 `HEAD~`,上上一个版本就是 `HEAD~~` 或 `HEAD~2`

Copy link
Member

Notes:使用前需要先配置 user.name 和 user.email,可考虑简要介绍 git 的全局和仓库 config 的概念

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants