Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2796

Git status in not working with Ubuntu WSL and VS Code

$
0
0

So I try to learn using git following a tutorial video

First I have my folder called git on my desktop.by saying code .I open it up in vsCode.After that I do sudo git initto initalize git. Then I touch app.js, index.html and style.css to the git folder and it also adds it in vscode.Next is adding some random text to app.js and running git add . and then git commit -m "made first commit". Till this point everything is running just as it should.

But then I go to app.js and add some more stuff.If running git statusit says: On branch master nothing to commit, working tree clean.When trying git add .and then git commit m-"second commit"it says:error: pathspec 'm-' did not match any file(s) known to giterror: pathspec 'second commit' did not match any file(s) knwon to git


Viewing all articles
Browse latest Browse all 2796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>