Category Archives: Git

解决git pull/push每次都要输入密码问题

← Continue Reading
一.现象 在服务器上每次git pull代码,都提示输入用户名密码。 二.原因 根据网上资料:git clone时连接的是https而不是git@git形式 三.解决办法 git目录下,执行命令: git config --global credential .helper store 然后再进行一次git pull,这次输完密码后,之后的git pull就不用输密码了。 作者:第四单元...

centos: git clone提示Permission denied publickey 问题

← Continue Reading
问题: Initialized empty Git repository in /data1/mouxuan/fastsocket-private/.git/ Permission denied (publickey). fatal: The remote end hung up unexpectedly 解决步骤: 1、cd ~/.ssh 2、ssh-keygen -t rsa -C you@E...

git版本升级1.7.1升级2.21

← Continue Reading
error: The requested URL returned error: 401 Unauthorized while accessing 在使用git pull、git push、git clone会报类似如下的错误: error: The requested URL returned error: 401 Unauthorized while accessing https://git...

warning: LF will be replaced by CRLF问题解决方法

← Continue Reading
warning: LF will be replaced by CRLF问题解决方法 git crlf rails 开发环境: 操作系统: windows xp ruby 1.9.2 rails 3.1.3 git version 1.7.8.msysgit.0 问题描述: 启动GIT: 新建了一个rails工程 Ruby代码  收藏代码 $ rails new blog 当切换到blog目录下执...

Github上传代码菜鸟超详细教程 windows版

← Continue Reading
Github上传代码菜鸟超详细教程 02 Feb 2016 最近需要将课设代码上传到Github上,之前只是用来fork别人的代码。 这篇文章写得是windows下的使用方法。 第一步:创建Github新账户 第二步:新建仓库 第三部:填写名称,简介(可选),勾选Initialize this repository with a README选项,这是自动创建REAMDE.md文件,省的你再...

github 简单远程拉取,推送使用教程

← Continue Reading
手编本: github远程仓库 1.github新建项目ABC 2.ssh-keygen -t rsa -C *20**@qq.com" 3.1cat ~/.ssh/id_rsa.pub 公钥粘贴到github ssh keys 4.mkdir wayde   cd wayde 5.git init 4.echo "# wayde” >>README.md 5.git add READ...

windows Github上传代码菜鸟超详细教程

← Continue Reading
最近需要将课设代码上传到Github上,之前只是用来fork别人的代码。 这篇文章写得是windows下的使用方法。 第一步:创建Github新账户 第二步:新建仓库 第三部:填写名称,简介(可选),勾选Initialize this repository with a README选项,这是自动创建REAMDE.md文件,省的你再创建。 第四步:安装Github shell程序,地址:htt...

[GIT] warning: LF will be replaced by CRLF问题解决方法

← Continue Reading
开发环境: 操作系统: windows xp ruby 1.9.2 rails 3.1.3 git version 1.7.8.msysgit.0   问题描述: 启动GIT:   新建了一个rails工程     Ruby代码   $ rails new blog     当切换到blog目录下执行    ...