SPM——How to use github

  In this semester, we take a class called 'Software Project Management'. And in this class, we have learnt a lot about managing projects. Last week, teacher Wang asked us to use github to practice managing projects. So I want to write something about how to use github.

 

1.create repository

  This is the first step using github, which is the most important. And I will show you some pictures about how I do these steps.

  

  The first sentence is making a directory to store my projects.

  The second sentence is entering the directory.

  The third sentence is showing the path of the directory.

  The last sentence is creating the repository.

2.commit project

  

  The first sentence is adding the .txt file to the index(not commit).

  The second sentence is adding the .txt file to the working directory.

3.Check wheather my project is changed

   

  From this sentence, we can find out that the 'github.txt' has been changed.

4.Find out the difference

  

  From this sentence, we can find out that I add a sentence to the 'github.txt'.

5.Reset version

  

  The "git log" sentence is used to check the version of the project.

  And we can use reset --hard HEAD^ to reset the version.

 

All above are some simple usage of the git. I will write more things later. Thanks~

To be professional.

转载于:https://www.cnblogs.com/wuditju/p/4442620.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值