I create a repository in the main directory of my mac for mistake. Then with gitgraph extension on vs code i see +10k file added and ready to commit, i press remove modify and now all of my files are deleted. Is there any chache to rehave them?
Is there any method for recover deleted file with git?
111 Views Asked by Andrea Lotti At
1
There are 1 best solutions below
Related Questions in GIT
- problem to push files on a repository git
- diff3 output in git conflict style, including mergeable hunks
- Git Not In Sync with Local Branch
- Setting up the version control of .dotfiles while the .config is connected to a forked repo
- How to fix overriding the main branch in Git?
- I can't add text to "Message" in VS Code when committing to Git
- How can i redirect pull request from main branch to another branch
- Xcode commits (possibly outside of any branch) disappeared, how to get them back?
- Git/TortoiseGit : how to apply ONLY the changes from ONE commit from branch A, to branch B?
- How can I reintroduce username an password on git using fedora?
- GIT SKIP EMPTY DIRECTORIES
- Git smudge run once per checkout or per commit?
- I can't find ~/.profile or ~/.bashrc in C:/Users/<user>/.ssh folder
- Set environment variable during push for GitHub Actions
- Android WebRTC compile
Related Questions in GIT-STATUS
- When i do git "status" or "git log" after adding file to my local cloned repository it does not show the status nor commit history
- warning in git and github about permission denied
- Is there any method for recover deleted file with git?
- Generate git COMMIT_EDITMSG text content, but do nothing else
- Wierd name displayed by git status
- Show untracked files only in specific folder
- Why does git clone not copy remote branch and give error message when git status? problem with upstream?
- how can i add one of my file in the .gitignore file?
- How to show only untracked sub-repos (not files) in git?
- How to show only filenames with "git status"?
- Gatsby develop V4 won’t switch between git branches
- Git: some changes weren't reversed by `git reset --hard HEAD`
- Git status fatal error: working tree directory
- Commit separately specific files inside untracked new directory in git
- Is there a way to get git statistics for changed/added/removed lines per user for a specific filetype?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You say "ready to commit". I interpret this to mean that you have stage all files. In this case, the files should all be in the object database. You can access them using
(manual page). You only get the contents back, but not the file names. These you have to recover in some other way, for example by inspecting the contents.