Git 搭建本地環境


1.安裝GIt

  • Linux :

    輸入命令$ sudo apt-get install git

 

  • Windows :

    下載並安裝 https://git-scm.com/downloads

 

 2.設置基本信息及初始化

  $ git config --global user.name "name"
  $ git config --global user.email "email@ex.com"

  $ git init

3.獲取SSH

  •   window

    本機公鑰路徑

    

 

 

     本地公鑰如果不存在,可以在gitbash里輸入  ssh-keygen  生成本地公鑰

    

 

  •   Linux 
    本機公鑰路徑  
    

 

     如果本地公鑰不存在,可以在terminal  輸入 ssh-keygen

 

 

 

 
 
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM