git 简易教程

来源:互联网 发布:淘宝商品背景素材 编辑:程序博客网 时间:2024/06/07 13:19

简易的命令行入门教程:

Git 全局设置:

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

创建 git 仓库:

mkdir django-restframework-democd django-restframework-demogit inittouch README.mdgit add README.mdgit commit -m "first commit"git remote add origin https://gitee.com/xxx/django-restframework-demo.gitgit push -u origin master

已有项目?

cd existing_git_repogit remote add origin https://gitee.com/xxx/django-restframework-demo.gitgit push -u origin master
原创粉丝点击