[Linux / GCP] Corrected the error that occurred when using the Git command.

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

[Linux / GCP] Corrected the error that occurred when using the Git command.
The story that a hash error came out when using Pipenv
Notify Slack when the linux command finishes
When the Linux command $ yum -y install gives an error (yum: command not found)
[Linux] Git command
Error that occurred in OpenCV3 and its solution Precautions when using OpenCV3 on Mac
Linux Ubuntu16.04 I got a little scary error when I ran a command using sudo
[Linux] Execute git pull regularly with the crontab command
linux command error collection 1
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
We will solve the warnings that occurred when the brew doctor command was executed one by one!
Linux delete command when only the folder cannot be deleted
Clone using the dd command
Solved the problem that sqlite3 got undefined error when cross-compiling Golang
Precautions when using the urllib.parse.quote function
[linux] kill command to kill the process
Problems that occurred when introducing rpy2
Using cgo with the go command
[Docker] What to do when error Couldn't find the binary git appears