I'm doing git, but I just committed and there is no staging, for example in a directory
wget https://ftp.drupal.org/files/projects/property_zymphonies_theme-2.0.1.tar.gz tar xzvf property_zymphonies_theme-2.0.1.tar.gz rm -rf property_zymphonies_theme-2.0.1.tar.gz
I got the file and generated the directory like this.
At this point, if you look at git status,
git status On branch feature Untracked files: (use "git add<file>..." to include in what will be committed) themes/property_zymphonies_theme / nothing added to commit but untracked files present (use "git add" to track)
It has become. Next, I wanted to undo this operation, so maybe I should delete the directory, but I thought it would be better to do it using git instead, so I did a lot of research.
git commit. git clean -f git reset --hard b431e67
I tried to do it, but it didn't work.
I thought it was a little strange, but is this something I should do with the rm command instead of git?
Answer # 1
Well, before doing anything, simply
rm -rfI wish I had done it.
themes/property_zymphonies_theme /Is not yet under the control of git (
git addYou haven't done that, right?).
git clean -fdBut I think it's okay.
In this case, all files and directories in your working directory that are not under the control of git will disappear.
- please tell me how to delete the directory uploaded to github
- PHP recursive delete directory and file method
- how to delete git history
- PHP delete the specified directory method
- PHP implementation to traverse a directory and delete the specified content in the specified file
- PHP delete all directories and files in the specified directory method
- PHP example sharing to delete all files in the directory through recursion
- 3 ways to delete specific files in a directory using bash shell
- Use glob function in PHP to delete all files in a directory in one sentence
- Use Iisftpdrvbs to delete the FTP virtual directory (support local and remote)
- C ++ delete a directory instance recursively
- PHP create and delete directory function introduction and recursive delete directory function sharing
- php empty (delete) the files in the specified directory, without deleting the directory folder implementation code
- Solution to delete iis gzip cache directory up to 11g
- PHP traversal delete entire directory and file method
- Method to delete entire directory via DirectoryIterator in php
- unix - please tell me how to delete the directory
- How to delete empty directory in PHP
- Java file directory read and write delete operation detailed implementation code
- python - you may need to restart the kernel to use updated packages error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- python 3x - typeerror: 'method' object is not subscriptable
- i want to call a child component method from a parent in vuejs
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- xcode - pod install [!] no `podfile 'found in the project directory