5 ms·
I prefer git init && git commit --allow-empty -m "$(basename (readlink -f .))"
by gioele 11y ago
I prefer
git init && git commit --allow-empty -m "$(basename (readlink -f .))"
- fjarlq 11y agopwd -P would be equivalent and more portable (POSIX compliant[1]) than readlink -f . which doesn't work on BSD-based systems. [1]: http://pubs.opengroup.org/onlinepubs/009696899/utilities/pwd.html http://pubs.opengroup.org/onlinepubs/009696899/utilities/pwd...