by HillaryBriss · 11y ago · 0 comments
Now, it's like: "Uh, oh, this initial checkin better be perfect. Someone will scrutinize it with first-commit."
OTOH, no one has ever expressed any interest whatsoever in any of my GitHub repos. I doubt even first-commit can change that.
1. It's slightly harder to edit the first commit afterwards (say, to replace a working title with the actual project title before publishing, or to fix authorship or whatever).
2. I create a lot of small repos, all the time, so I have a shell alias for "init, commit, add .gitignore, commit".
[1] git init && git commit --allow-empty -m 'Initial commit'
git init && git commit --allow-empty -m "$(basename (readlink -f .))" pwd -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...