当前位置: 首页 > news >正文

GIT:【基础一】必要配置和命令

目录

一、Git安装

二、基础命令

        1.git config -l:git配置详细信息

        2.git config --system -l:本地git系统自动配置的信息

        3.git config --global -l:本地git用户自动配置的信息

        4.where git: windows查看git安装目录

        5.git各配置文件存放位置

        6.通过命令配置git的用户名密码


一、Git安装

        请自行百度,使用.exe安装。安装git时,自动配置了环境变量

二、基础命令

        右键 Git Bash here 打开命令窗口。

        1.git config -l:git配置详细信息

$ git config -l       # 执行的命令# 以下是响应信息
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=E:/software/git/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=true
pull.rebase=false
credential.helper=manager-core
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
user.name=lvyingliang                        # 已经配置的用户的信息
user.email=lvyingliang@lansoft.com.cn        # 已经配置的用户的信息

        2.git config --system -l:本地git系统自动配置的信息

$ git config --system -l  # 执行命令# 响应信息
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=E:/software/git/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=true
pull.rebase=false
credential.helper=manager-core
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master

        3.git config --global -l:本地git用户自动配置的信息

$ git config --global -luser.name=lvyingliang
user.email=lvyingliang@lansoft.com.cn

        4.where git: windows查看git安装目录

        5.git各配置文件存放位置

                --system系统配置文件位置:Git目录/etc/gitconfig。文件内容同1.2响应内容

                --global用户配置文件位置:C:\Users\当前登录用户(lvxiaobu)\.gitconfig【可以通过操作用户的配置文件直接配置用户名密码】 。文件内容同1.3响应内容

        6.通过命令配置git的用户名密码

git config --global user.name "lvxiaobu"
git config --global user.email "lvxiaobu@qq.com"

http://www.lryc.cn/news/14163.html

相关文章:

  • 黑马程序员-Linux系统编程-01
  • Python|每日一练|动态规划|图算法|散列表|数组|双指针|单选记录:不同路径|求两个给定正整数的最大公约数和最小公倍数|删除有序数组中的重复项
  • Java常用框架(一)
  • 基于 DSP+FPGA 的高清图像跟踪系统研制
  • apisix部署
  • 无聊小知识01.serialVersionUID的作用
  • pytorch搭建手写数字识别LeNet-5网络,并用tensorRT部署
  • 扬帆优配|五千亿巨头一度涨停! 4天3倍,港股又现“狂飙”股!
  • RocketMQ之(一)RocketMQ入门
  • 推荐系统[三]:粗排算法常用模型汇总(集合选择和精准预估),技术发展历史(向量內积,WideDeep等模型)以及前沿技术
  • vue3 + vite 使用 svg 可改变颜色
  • SQL82 返回 2020 年 1 月的所有订单的订单号和订单日期
  • vulnhub zico2
  • 处理窗口的常用API函数及窗口处理经验总结(附源码)
  • @TableId注解详细介绍
  • kubectl常用的命令
  • Linux 配置远程SSH服务(密码+密钥)
  • WuThreat身份安全云-TVD每日漏洞情报-2023-02-20
  • 面试经常被问悲观锁和乐观锁?什么是cas?来我花3分钟时间告诉你
  • React源码分析3-render阶段(穿插scheduler和reconciler)
  • 3功能测试心得分享
  • Python-推导式
  • 操作系统线程
  • vue3中如何定义响应式变量
  • 【C++修炼之路】20.手撕红黑树
  • 树状数组(高级数据结构)-蓝桥杯
  • Flink-多流转换(Union、Connect、Join)
  • kubeadmin安装k8s集群
  • java3月train笔记
  • Apollo Config原理浅析