怎样创建GitHub 项目

本文介绍如何使用GitHub托管软件开发项目,包括创建新项目、组织管理及添加合作者等步骤。适用于初学者快速上手。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

About Github

Github is a web-based hosting service for software development projects that use Git Revision Control system. Github offers both paid plans for private repositories and free accounts for open source projects. As of May 2011, Github was the most popular open source code repository site.

Ebay use an Enterprise Github Edition internally. Currently, most of the projects(PD and internal) inside Ebay are hosted to github.corp.ebay.com. Besides, any user could have his own projects/fork on github.

 

Steps to Create a Github project

 

  1. Login to github with your account.
  2. There will be an icon with tooltip "Create a New Repo" on the right-up besides user name.
  3. Click the icon and you will go into the repository creation page.

    4. Specify the project's repository name like(Testing_Repository), Fill the description and config the Public or Private for the repository.

    5. Click Create repository and there will create a rough repository.

    6. Create a new repository on the command line(open your Git Batch)

        1)  mkdir testing_repo

        2) cd testing_repo

        3) git init

        4) touch test.txt

        5) git add test.txt

        6) git commit -m'first commit'

        7) git remote add origin git@github.com:swang6/Testing_Repository.git

        8) git push -u origin master

 

      7. After the former steps, the repository should be:

      8.  To add somebody else as collaborator, click the "Admin" button on the repository home page. See below image. Add the other guy's github account to the collaborator list.

 

 

 

Fork the project to Organization

 Create a organization
1) Click icon Account Settings on the right-top

2) Click Organizations and Create a new Organization

 

3) Specify Organization name and Billing Email and click "Create Organization".
4) Invite your team members to the organization: Specify user and Click "Add".

 

5) After these steps, there should be a new organization.
6) Back up to the main page of "Testing_Repository" created before, and click "Fork" icon.

 

 

  7) Click "Fork to TestOrganization(organization)" Created before.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值