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

[软技能] 第528天 git怎样忽略已加入版本库的文件? #2974

Open
haizhilin2013 opened this issue Sep 24, 2020 · 2 comments
Open
Labels
软技能 软技能

Comments

@haizhilin2013
Copy link
Collaborator

第528天 git怎样忽略已加入版本库的文件?

3+1官网

我也要出题

@haizhilin2013 haizhilin2013 added the 软技能 软技能 label Sep 24, 2020
@wheatup
Copy link

wheatup commented Sep 25, 2020

  1. 首先将所有文件移出版本控制
git rm -r --cached .
  1. 将需要忽略的文件列入.gitignore
  2. 再次添加所有文件进入版本控制
git add .
  1. 提交更改
git commit -m '修复忽略文件'

@FreesFall
Copy link

git update-index --assume-unchanged 文件

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

No branches or pull requests

3 participants