git基本操作(一)创建项目和加入已存在项目

作者: 杨圣亮 分类: 开源软件 发布时间: 2016-11-09 16:32:53

git  创建项目 或加入已存在项目,简易的命令行入门教程:

Git 全局设置:

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

创建 git 仓库:

mkdir 项目文件夹
cd  项目文件夹
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin git项目
git push -u origin master

已有项目?

cd existing_git_repo
git remote add origin git项目地址
git push -u origin master
2条评论
  • 匿名

    2020年4月7日 下午1:47

    完全看不懂,实际操作与说明,相差十四万公里。我学习git两年多了,至今一点儿也不会。

    1. 杨圣亮

      2020年4月18日 下午9:42

      哪里看不懂?

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

  ×  6  =  18

微信