Timeline for How do I add an empty directory to a Git repository?
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 30, 2016 at 8:37 | comment | added | clacke | @SeldomNeedy Maybe they are looking for help because they don't even know they are using a different shell than everybody else. | |
| May 25, 2016 at 19:38 | comment | added | Seldom 'Where's Monica' Needy | @clacke If someone decides to use a different shell than everyone else, they should state that expressly if they are encountering problems. Unlike with nationality, everyone has their free choice of shell. | |
| Apr 21, 2016 at 11:34 | history | edited | GAMITG | CC BY-SA 3.0 |
added 1 character in body
|
| Jun 5, 2015 at 21:47 | review | Suggested edits | |||
| Jun 5, 2015 at 22:09 | |||||
| Mar 16, 2015 at 8:26 | comment | added | clacke |
/bin/sh cultural assumption!* If "here" is csh and the variable noclobber is set, you will indeed get file: File exists. If someone says "I get this", don't assume they're an idiot and reply "No you don't". * c2.com/cgi/wiki?AmericanCulturalAssumption
|
|
| Apr 1, 2014 at 19:53 | comment | added | psyrendust |
If you just do echo bla > file you will not get file: File exists because > will overwrite the file if it's already there or create a new one if it doesn't exist.
|
|
| Dec 28, 2013 at 15:55 | comment | added | Kenney |
touch file; echo bla > file gives file: File exists here; in that case it's safest to use rm file; touch file; echo something >> file (and probably many other solutions ;-))
|
|
| Jan 28, 2010 at 15:50 | comment | added | Christoffer Hammarström | Two things: You could just "echo '*' > tmp/.gitignore" instead of touching, and "git commit -m" does not commit changes done after you've added the files to the index. | |
| Oct 8, 2008 at 0:13 | history | answered | m104 | CC BY-SA 2.5 |