博客园 首页 私信博主 显示目录 隐藏目录 管理 动画

how to share code with gitee?

1

 

2

 3

 

 4

 

 

 

Successfully created project 'gmall-publisher-test' on Gitee, but initial commit failed: Author identity unknown ***

Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "

Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. unable to auto-detect email address (got

是git没有配置的原因,找到git安装目录下的Git Bash运行后输入下面两行代码即可:

git config --global user.name "GitHub账号"

git config --global user.email "GitHub账号注册的邮箱"

 

 

 

简易的命令行入门教程:

Git 全局设置:

git config --global user.name "c675"
git config --global user.email "1779162812@qq.com"

创建 git 仓库:

mkdir app4
cd app4
git init 
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/chang0675/app4.git
git push -u origin "master"

已有仓库?

cd existing_git_repo
git remote add origin https://gitee.com/chang0675/app4.git
git push -u origin "master"


 

 

 
posted @ 2022-04-19 19:51  CHANG_09  阅读(31)  评论(0编辑  收藏  举报