git安裝
windows下安裝git
git下載進入網址:
點擊下載,進行安裝,安裝成功,你會看到圖標,點擊進入到git bash
查看git的版本

二、git命令使用
git 創建用戶名:
提交代碼時會標注作者是誰,以及提交以后以及郵件
git config --global user.name zhangjun
git config --global user.emial
252950418@qq.com
git 有三個級別
- git config --system 權限低
- git config --global 權限中,針對當前用戶
- git config --local 權限是最高的,針對當前倉庫
git 查看幫助文檔
Git help config 可查看文檔
man Git config
git help config
git查看用戶:
查看當前用戶是誰:
git config --get user.name
添加用戶
git config --global user.name zhang1
查看所有用戶
git config --list --global
刪除用戶
git config --global --unset user.name zhang1
修改用戶名:
Git config --global user.name zhang1
git給命令 起別名
Git config --global alias.co checkout(圖片下寫錯了)
Git config --global alias.ci commit
當我們在使用ctab建時就發現多了一個ci 和co 那ci就可以代替commit,co就可以代替checkout
