On Thu, Dec 09, 2021 at 04:30:53PM -0800, skybuck2000 wrote: [...]
> I assume the git operations below are kept ? this is not explained properly > in following tutorial: > > Create A Custom Git Commit Template | by Alex Wasik | Medium > <https://alex-wasik.medium.com/create-a-custom-git-commit-template-84468232a459> > > git config --global commit.template ~/.gitmessage > > Also what is ment with ~/. ? Where is this folder located ? At root of any > repository ? It's precisely the same case as with PAGEFILE.SYS: everyone must know what it means, right? OK, jokes aside, ~ is expanded by Unix shells to the home directory of the current user, so ~/filename is something like /home/joe/filename is the current user is joe. The dot is nothing special - it's just a character in the file's name. By convention, files whose name begin with a dot are hidden by Unix filesystem listing tools such as `ls`, and are excluded from "globbing" so that command invocations like $ cp * /dest/dir/ do not copy such "dot-files". IoW, ~/.gitmessage is a file named ".gitmessage" in the current user's home directory. The author of the referenced article ostensibly talked about some Unix-style OS (which includes mac os x). > So this would allow me to setup a gitmessage per repository ? With "--global" - no. But you could read the `git config` manual to see how make your setting applied to the local repository. [...] I lack mental energy to pore through the wall of text which followed. Hope the above helps to solve at least some of the remaining problems. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/20211210135915.klujwqlvtscuatx2%40carbon.