'How to touch multiple files, each with unique filenames, files to be created from outside the current directory. Using Git Bash CLI

This touch example creates multiple files in the current working directory:

touch register.ejs secret.ejs

How do we achieve the same result when we are outside the current working directory? I tried this example but the second file does not get created:

$ touch views/register.ejs secret.ejs


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source