【git】简易的命令行入门教程

1.Git 全局设置

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

2.创建 git 仓库

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

3.已有仓库

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

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/xzzteach/article/details/141069632