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

git checkout 和 git checkout -- 的区别 #24

Open
yuqingc opened this issue Nov 12, 2020 · 0 comments
Open

git checkout 和 git checkout -- 的区别 #24

yuqingc opened this issue Nov 12, 2020 · 0 comments
Labels
other Other topics

Comments

@yuqingc
Copy link
Member

yuqingc commented Nov 12, 2020

$ git checkout a
$ git checkout -- a

-- 告诉 git 后面的参数是文件,而不是 branch。(一般如果有文件名和 branch 名字冲突时会有用)

@yuqingc yuqingc added the other Other topics label Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
other Other topics
Projects
None yet
Development

No branches or pull requests

1 participant