Git基本使用

Git使用基础命令

创建Repository

初始化Repository

Cloning an Existing Repository

追踪新的文件

Staging Modified Files

Ignoring Files

Often, you’ll have a class of files that you don’t want Git to automatically add or even show you as being untracked. These are generally automatically generated files such as log files or files produced by your build system. In such cases, you can create a file listing patterns to match them named .gitignore. Here is an example .gitignore file:

Viewing Your Staged and Unstaged Changes

Committing Your Changes

Skipping the Staging Area

Removing Files

Moving Files

  • 发表于:
  • 原文链接https://kuaibao.qq.com/s/20180717G0AWAA00?refer=cp_1026
  • 腾讯「云+社区」是腾讯内容开放平台帐号(企鹅号)传播渠道之一,根据《腾讯内容开放平台服务协议》转载发布内容。

扫码关注云+社区

领取腾讯云代金券