how to edit a text file in git bash

C++
nano hey.txt 

Source

Also in C++: