Sie können verwenden echo. > .gitignore
. So habe ich es geschafft, eine .gitignore
:
C:\Users\jaimemontoya\[path]>dir
Volume in drive C is OS
Volume Serial Number is 2BD2-JQ68
Directory of C:\Users\jaimejaimemontoya\[path]
11/02/2021 02:42 AM <DIR> .
11/02/2021 02:42 AM <DIR> ..
11/05/2021 05:22 AM <DIR> .git
11/02/2021 02:41 AM <DIR> .gradle
11/02/2021 02:43 AM <DIR> .idea
11/02/2021 02:41 AM <DIR> app
11/02/2021 02:41 AM <DIR> build
..........
..........
12 File(s) 14,104 bytes
8 Dir(s) 231,501,361,152 bytes free
C:\Users\jaimemontoya\[path]>echo. > .gitignore
C:\Users\jaimemontoya\[path]>dir
Volume in drive C is OS
Volume Serial Number is 2BD2-JQ68
Directory of C:\Users\jaimemontoya\[path]
11/05/2021 05:40 AM <DIR> .
11/05/2021 05:40 AM <DIR> ..
11/05/2021 05:22 AM <DIR> .git
11/05/2021 05:40 AM 3 .gitignore
11/02/2021 02:41 AM <DIR> .gradle
11/02/2021 02:43 AM <DIR> .idea
11/02/2021 02:41 AM <DIR> app
11/02/2021 02:41 AM <DIR> build
..........
..........
13 File(s) 14,107 bytes
8 Dir(s) 231,512,551,424 bytes free