-
Notifications
You must be signed in to change notification settings - Fork 35
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
Added rm-gitignore script #3 #30
Conversation
Please use AI with sanity! |
please remove scripts/color and .gitignore file from the PR and can you explain your approach please! |
@rootCircle Sure here is the explanation for the code Explanation of the code
Also I have removed the unnecessary files. |
Your explanation looks great! Also, @Priyanshu-2005 actually you didn't have to delete the color script just restore it to status quo! See the files changes section, the upstream (the main repo) has color script, but you deleted them! Trying fixing that if you can ping me here when you're done with those/need any help, so we can move forward with your PR! |
Why do you think that there might be multiple .gitignore in one CWD? Any specific purpose/motive? |
Added Color file which got deleted by mistake.
@rootCircle I have restored it by adding the color file but now it is showing an empty file. Is it okay? |
There might be multiple .gitignore files present in subdirectories too (if they had been there) . |
Sorry, it doesn't! You can take help from https://www.freecodecamp.org/news/git-revert-file-reverting-a-file-to-a-previous-commit/ Simply, you need to restore the file using |
oh, that's cool. |
ping me here when you're done with those/need any help, so we can move forward with your PR! |
@rootCircle Changes made. Kindly look into this. |
LGTM 👍 Accepted! Thanks for your contribution! |
issue #3
Added the entire functional script with comments to improve readablity.
The script would first check all the files in .gitignore file and move to the corresponding location accordingly and then delete that file mentioned in .gitignore file.
The output can be seen in the images:
Files mentioned in .gitignore file
Command Used:
cat .gitignore
Before running the script
Command Used:
tree
After running the script
Commands Used:
bash rm-gitignore
tree
as we can see index2.js and index.js present in src2 folder got deleted
Kindly look into this