Git的安裝與配置(簡單明瞭)

git的安裝和配置

Git是分佈式版本管理工具

1.下載git安裝包

官網下載網址:https://git-scm.com/downloads

2.安裝git

next。。。

3.檢測git是否安裝成功

cmd->git --version->打印版本號
【出現版本號即安裝成功】

4.配置git的用戶和郵箱(設置個人信息)

【–global :全局變量】

  1. 設置用戶姓名
    git config --global user.name "姓名"
  2. 設置可以聯繫的郵箱地址
    git config --global user.email "聯繫郵箱"
  3. 查看用戶名和地址
    git config user.name
    git config user.email
    或【–global :全局變量】
    git config --global user.name
    git config --global user.email
  4. 修改用戶名和地址(與設置是一樣的命令,更新信息)
    git config --global user.name “your new name”
    git config --global user.email “your new email”
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章