https://www.topgate.co.jp/gcp04-google-compute-engine-run-application I dealt with it when I tried to do it here.
[Reference site] How to use the git init command: https://www.sejuku.net/blog/71268
【1】 Initialized empty Git repository in The above is the display when it was OK.
【2】 I got the following error when I git commit. I got the following error git commit -m “Initial Commit” error: pathspec 'Commit”' did not match any file(s) known to git.
https://teratail.com/questions/161970 See here.
It's OK if you go single instead of double coat
【3】 I got the following error git commit -m 'Initial Commit'
*** Please tell me who you are.
Run
git config --global user.email "[email protected]" git config --global user.name "Your Name"
to set your account's default identity. Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got '@')
https://qiita.com/Taylor-U/items/3f329895766e613b3acf I solved it here.
In short, I didn't make any settings related to the git command.
https://note.nkmk.me/git-config-setting/ It seems that you can check and change the settings here.
git config -l core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true
Certainly, only this came out. So I set it up and added and committed again and I was able to go.
git add . git commit -m 'Initial Commit' [master (root-commit) bb4b386] Initial Commit 5 files changed, 84 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 app.yaml create mode 100644 main.py create mode 100644 main_test.py
======
Recommended Posts