I can creat a new file in Git with the echo command:`echo > newFile.txt`
After the file is created, i just usually navigate to the file directory from file explorer, update it with my codes and save it. It works okay.

The questiion is: If i already have a file containig all my codes in a workspace on my local machine, is there a way to tell Git to create a new file using that existing file instead of manually going to edit the new Git file? I think maybe it's possible to specify the existinng file path so that Git can go to fetch it?