首页 > 其他分享 >Git

Git

时间:2023-01-11 17:56:10浏览次数:58  
标签:git -- config here Git 安装

1.下载

git的官网下载路径:Git - Downloading Package (git-scm.com)

【steup】设置版本:是安装到自己电脑上的版本,可以使用使用右键“git Bash here”或者“git GUI here”。

【portable】便携式版本:git-portable是针对windows版git所设计的一款软件。你可以选择将它安装在U盘等便携设备上。它不需要安装,也不会在注册表上留下记录。正因为这样,你也无法像桌面版的git那样,使用右键“git Bash here”或者“git GUI here”。

快速下载:CNPM Binaries Mirror (npmmirror.com)

2. 安装

安装过程一路默认的配置即可。

安装完成后,右键出现Git GUI Here和Git Bash Here,即表示安装成功。

linux基本命令:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 3. 配置

查看配置:git config -l

     git config --system --list

     git config --global --list(自己配置的)

配置邮箱:git config --global user.name "scy"    一定要做

     git config --global user.email "邮箱地址"

 

本地仓库:git init

克隆远程仓库:git clone url

4. Git操作命令

查看文件状态:git status 

添加所有文件到暂存区:git add .

提交暂存区中的内容到本地仓库:git commit -m "-------"

免密码登录-生成公钥:ssh-kegen

 复制id_rsa.pub中的内容到GitHub-->settings-->SSH and GPG keys-->Key中

 

 

 克隆到本地:git clone HTTPS的地址/SSH

 

 

标签:git,--,config,here,Git,安装
From: https://www.cnblogs.com/ordinary-boy/p/17044528.html

相关文章