Git global settings:
git config --global user.name "xxx"
git config --global user.email "xxx@qq.com"
Create git repository:
mkdir android-base
cd android-base
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/www.dub.get/android-base.git
git push -u origin master
Existing repository?
cd existing_git_repo
git remote add origin https://gitee.com/www.dub.get/android-base.git
git push -u origin master
这篇博客介绍了如何配置Git全局设置,创建新的Git仓库,以及将已有仓库关联到远程仓库并进行首次推送。步骤包括设置用户名和邮箱,初始化本地仓库,添加文件,提交,关联远程仓库并推送代码到Gitee。

被折叠的 条评论
为什么被折叠?



