首页 > 其他 > 详细

Git - Basic Git Workflow

时间:2016-07-03 00:17:49      阅读:219      评论:0      收藏:0      [点我收藏+]

Definition

Git is a software that allows you to keep track of changes made to a project over time.  Git works by recording the changes you make to a project, storing those changes, then allowing you to reference them as needed.

 

 Git project can be thought of as having three parts:

  1. Working Directory: where you‘ll be doing all the work: creating, editing, deleting and organizing files
  2. Staging Area: where you‘ll list changes you make to the working directory
  3. Repository: where Git permanently stores those changes as different versions of the project

 

Use Git commands to help keep track of changes made to a project:

  • git init creates a new Git repository
  • git status inspects the contents of the working directory and staging area
  • git add adds files from the working directory to the staging area
  • git diff shows the difference between the working directory and the staging area
  • git commit permanently stores file changes from the staging area in the repository
  • git log shows a list of all previous commits

 

Git - Basic Git Workflow

原文:http://www.cnblogs.com/elewei/p/5636263.html

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