1. 创建代码仓库。

a.Git 开发版本控制

b.Git 开发版本控制

2. 将本地代码上传仓库。

    cd E:\code

   $ git init

     Initialized empty Git repository in E:/code/.git/

   git remote add origin [email protected]:xxxxxxxxxxxxxxxxxxxxxx.git

     git add .

   git commit -m "描述信息frist commit"

   git push -u origin master

3. 创建分支。

a.Git 开发版本控制

b.Git 开发版本控制

 c. Git 开发版本控制

4.添加对外开放的用户。

Git 开发版本控制

5. 在开发者本地:

<1>.  clone 代码仓库。

<2>.  cd 切换到刚拉取的项目中。

<3>. git checkout 分支名   //切换到开发者分支。

Git 开发版本控制

相关文章: