I’ve been writing notes in Git and here’s a screenshot of the commit page. Have you noticed any similarities between the commits?
Yes, the duplicated commit messages. I repeated myself in committing my notes: for every single change, I typed at least git add
, git commit
, git push
- and they were almost the same!
So how could I handle or improve this low ROI situation when using Git that version control is required but not necessary for each update?
I did 2 things:
.bash_profile
:
# etontig
func () { bash /Users/yuqing.ji/etontig/etontig.sh $1 $2; }
alias etontig=func
Now if I want to do a new post, I just need to:
$ cd gniquyij.github.io # the name of my note folder
$ etontig cp