How can I commit the full project again? (I want upload all of my file upload again to heroku)
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
- Upload file > 25 MB on Github
相关文章
- 请教Git如何克隆本地库?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
- Cannot commit changes with gitextensions
- git: retry if http request failed
not completely sure what you want, but to add all files and commit all changes, use this
I'm not sure what you mean by corrupted -- Git uses SHA1 hashes, and it's very very hard for things to break.
You could do
find | xargs touch
just in case your mtimes got messed up, but after that,git status
will show you reliably if your working copy matches the repo (minus anything listed in.gitignore
). Generating a new commit without any changes (which is what you seem to be asking for), as withgit commit --allow-empty
, is verifiably going to get you the same tree and won't solve your problem.So I think you'll have to bite the bullet and spend some time tracking down where exactly the corruption happened (track down broken files, see which commit changed them, etc.). It's most likely not Git's fault.