跳转至

GIT 命令大全

linux 终端命令

正常上传

- git add .
- git commit -m "20230403"
- git push -u origin main

vscode

准备工作

确保GIT已经安装,VS Code will use your machine's Git installation (at least version 2.0.0), so you need to install Git first before you get these features.

提交

配置 Git 用户名和电子邮件 When you commit, be aware that if your username and/or email is not set in your Git configuration, Git will fall back to using information from your local machine. You can find the details in Git commit information.

source control 中 message 文件中填写内容

command + enter 提交 comment

git 解决远程仓库文件大小写问题

$ git config core.ignorecase false