使用Git远程获取代码

 

[plain] view plain copy
 
 print?
  1. git clone https://github.com/twlkyao/findfile.git  

 

    出现“fatal: Unable to find remote helper for 'https'”(这是因为git环境在重装后没有安装完全,需要重新安装),可暂时使用git代替https,使用如下命令:

 

[plain] view plain copy
 
 print?
  1. git clone git://github.com/twlkyao/findfile.git  

 

    这里将使用代码安装进行介绍:

    切换到代码目录:

 

[plain] view plain copy
 
 print?
  1. cd /opt/git-1.8.1.2/  

    然后按照INSTALL中的说明设置安装前缀(一般使用root安装):

 

 

[plain] view plain copy
 
 print?
  1. $ make prefix=/usr all doc info ;# as yourself  
  2. # make prefix=/usr install install-doc install-html install-info ;# as root  

   然后执行make install

 

 

[plain] view plain copy
 
 print?
    1. # make install 

相关文章:

  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案