Git 操作项目

热烈推荐:超多IT资源,尽在798资源网

Git 全局设置

git config --global user.name "xianhenyuan"
git config --global user.email "[email protected]"

创建新版本库

git clone [email protected]:xianhenyuan/798blog.git
cd 798blog
touch README.md
git add README.md
git commit -m “add README”
git push -u origin master

已存在的文件夹或 Git 仓库

cd existing_folder
git init
git remote add origin [email protected]:xianhenyuan/798blog.git
git add .
git commit
git push -u origin master

猜你喜欢

转载自blog.csdn.net/xianhenyuan/article/details/92794790