git ignore all files and folders in folder 1

git ignore all files and folders in folder

*
*/
!.gitignore

Here is what the above code is Doing:
1. We’re creating a new file called .gitignore.
2. We’re opening the file in write mode.
3. We’re writing the contents of the file.
4. We’re closing the file.

Similar Posts