Create a new file in git bash

The Solution to Create a new file in git bash is


If you are using the Git Bash shell, you can use the following trick:

> webpage.html

This is actually the same as:

echo "" > webpage.html

Then, you can use git add webpage.html to stage the file.

~ Answered on 2013-09-25 05:43:29


Most Viewed Questions: