简单的 Git 仓库初始化和推送

作者:guoxj
浏览:410

简易的命令行入门教程:

Git 全局设置:

git config --global user.name "your_name"
git config --global user.email "your_email"

创建 git 仓库:

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

已有仓库?

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

 




登录后回复

共有0条评论