Claire
Claire

Reputation: 11

Can't create text file through Gitshell

I can't create a text file in gitshell. I've been trying to add files using

git add filename.txt

I don't know what I'm doing wrong...is there something else I need to add?

Upvotes: 0

Views: 46

Answers (2)

user10678
user10678

Reputation: 159

First, initialize a local repository in your workspace,

git init foldername

Then add, git add filename.txt

Upvotes: 1

Ilya Isaev
Ilya Isaev

Reputation: 197

Try this one.

touch filename.txt
git add filename.txt

Upvotes: 2

Related Questions