本地身份
git config --global user.name "酒剑仙"
git config --global user.email "xxxx@qq.com"
创建.gitignore文件
git init
链接服务器
git remote add origin https://gitee.com/greentran/你的项目.git
提交本地
git add .
查看本地提交
git status
提交更改
git commit -m "Initial commit with Unity project"
推送到Gitee
git push -u origin master
从远程 main 分支拉取
git pull origin master
查看远程仓库
git remote -v
放弃本地提交
git restore file.txt