I installed VS Code (version: 1.12.1) and after that I installed Git (version: 2.13.0.windows.1) on a Windows 10 computer. Then:
I created an Asp.Net project (img 1)
I open it in VS Code, go into Source Control and click Initialize Repository (img 2)
I tried to commit the changes (img 3).
- And I saw this error message (img 4).
- Then I made sure Git was a provider (img 5)
- I went to settings.json and redefined git Path (img 6), by default it was set to null. But this does not solve the problem. I created another application from scratch and the same error message is displayed.
Click here to see screenshots, please
Here is the output of the Git log:
Using git 2.13.0.windows.1 from C:\Program Files\Git\cmd\git.exe
git rev-parse
git rev-parse
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
git rev-parse
fatal: Not a git repository (or any of the parent directories): .git
git init
git rev-parse
git status -z -u
git symbolic-ref
git rev-parse master
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
git for-each-ref
git remote
git show :../../AppData/Roaming/Code/User/settings.json
git status -z -u
git symbolic-ref
git rev-parse master
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
git for-each-ref
git remote
git show :../../AppData/Roaming/Code/User/settings.json
git add -A
git commit
*** Please tell me who you are.
Run
git config
git config
to set your account default identity.
Omit
fatal: unable to auto-detect email address (got 'COMPAQ@PREPARA12.(none)')
git config
git show :../../AppData/Roaming/Code/User/settings.json
git status -z -u
git symbolic-ref
git rev-parse master
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
git for-each-ref
git remote
git show :../../AppData/Roaming/Code/User/settings.json
git commit
*** Please tell me who you are.
Run
git config
git config
to set your account default identity.
Omit
fatal: unable to auto-detect email address (got 'COMPAQ@PREPARA12.(none)')
git config
git show :../../AppData/Roaming/Code/User/settings.json
git status -z -u
git symbolic-ref
git rev-parse master
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
git for-each-ref
git remote
git show :../../AppData/Roaming/Code/User/settings.json
git fetch
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
git fetch
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
git fetch
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
git fetch
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
git fetch
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
git commit
*** Please tell me who you are.
Run
git config
git config
to set your account default identity.
Omit
fatal: unable to auto-detect email address (got 'COMPAQ@PREPARA12.(none)')
git config
git status -z -u
git symbolic-ref
git rev-parse master
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
git for-each-ref
git remote
Lucas