Git命令大全

来源:互联网 发布:迅雷mac版本2.7.8 编辑:程序博客网 时间:2024/06/06 20:24

Git 命令大全

下载地址

GitHub for Windows
htps://windows.github.com

GitHub for Mac
htps://mac.github.com

Git for All Platforms
htp://git-scm.com

命令

配置命令

$ git config –global user.name “[name]”
Sets the name you want atached to your commit transactions


$ git config –global user.email “[email address]”
Sets the email you want atached to your commit transactions


$ git config –global color.ui auto
Enables helpful colorization of command line output

创建版本库

$ git init [project-name]
Creates a new local repository with the specified name


$ git clone [url]
Downloads a project and its entire version history

0 0