首页 > 代码库 > git 初始化

git 初始化

Git 全局设置:

git config --global user.name "xxx"git config --global user.email "xx@qq.com"

创建 git 仓库:

mkdir ggcd gggit inittouch README.mdgit add README.mdgit commit -m "first commit"git remote add origin https://git.oschina.net/handongyu/gg.gitgit push -u origin master

已有项目?

cd existing_git_repogit remote add origin https://git.oschina.net/handongyu/gg.gitgit push -u origin master

git 初始化