首页 > 其他 > 详细

SPM——How to use github

时间:2015-04-20 22:19:26      阅读:299      评论:0      收藏:0      [点我收藏+]

  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.

SPM——How to use github

原文:http://www.cnblogs.com/wuditju/p/4442620.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!