码迷,mamicode.com
首页 > 其他好文 > 详细

Git - Basic Git Workflow

时间:2016-07-03 00:17:58      阅读:194      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!