
git
iteye_13003
这个作者很懒,什么都没留下…
展开
-
git .gitignore 忽略他自己 .gitignore
若是新的.gitignore新建.gitignore在.gitignore里面添加.gitignore即可忽略它自己若是已提交的.gitignoregit rm --cached在.gitignore里面添加.gitignore即可忽略它自己 参考:https://help.github.com/articles/ignoring-files/...原创 2015-12-09 16:27:30 · 10233 阅读 · 1 评论 -
Git 修改最后一次提交内容
1. git rebase -i HEAD~ // ~最后一次 ~~最后2次 ~2最后2次2. 出现vi界面 把pick改为edit3. git add.4. git rebase --continue5. 出现vi界面,可以修改commit消息,保存并退出...原创 2015-09-06 15:04:46 · 321 阅读 · 0 评论 -
Git 修改最后一次提交commit消息
$ git commit --amend 出现你最后一次提交的message vi界面,直接修改消息然后保存并退出vi。按esc然后 :wq 退出。原创 2015-09-06 14:58:23 · 612 阅读 · 0 评论 -
Unlink of file '.git/objects/pack' failed. Should I try again? (y/n)
原因:由于其他程序正在操作git目录下面的文件,导致git无法关联该文件,比如其他文件夹、应用程序、dos命令窗或者git bash。出现这种情况,就会报错,怎么确认(y)都无济于事。 正确的打开方式:1、确定git目录是干净的,没有需要add和commit或者push的代码。2、关闭所有操作该git目录下文件的应用程序包含命令窗。3、再次使用git bash执行git p...原创 2015-08-25 15:29:46 · 1170 阅读 · 0 评论 -
Git checkout to master
1、$ git remote -v找到你的git的远程名称 2、$ git checkout -b master frontend/master在master上新建一个你需要的分支即可,若上面是 origin,则此次master的名字则为:origin/master ...原创 2015-07-28 10:54:52 · 372 阅读 · 0 评论 -
Git fatal: unab SSL certificate problem: unable to get local issuer ce rtificate
// 报错如下:$ git pull origin masterfatal: unable to access 'https://git.xxx.com/': SSL certificate problem: unable to get local issuer certificate // 原因:由于git最新版默认使用ssl安全验证,但是我们是使用的git未设置安全...原创 2015-06-12 21:21:05 · 400 阅读 · 0 评论 -
Nodejs 微信开发之语音识别
1、Nodejs wechat库git://github.com/node-webot/wechat.git2、微信语音识别功能: http://mp.weixin.qq.com/wiki/2/f2bef3230362d18851ee22953abfadde.html3、进行开发 processVoice = function(message, req, res) {...原创 2015-04-12 16:45:38 · 737 阅读 · 0 评论 -
git操作远程分支(协同开发)
// 添加远程仓库$ git remote add joe git@git.xxx.com:joe.le/frontend.git// 修改远程仓库地址$ git remote set-url joe git@git.xxx.com:joe.le/frontend.git// 删除远程仓库$ git remove joe// 重命名远程仓库$ gi...原创 2014-10-10 14:57:20 · 199 阅读 · 0 评论 -
Updates were rejected because the tip of your current branch is behind
$ git push joe prod-2295-1To git@git.com:joe.le/frontend.git ! [rejected] prod-2295-1 -> prod-2295-1 (non-fast-forward)error: failed to push some refs to 'git@git.com:joe.le/fronte...原创 2014-10-10 10:12:33 · 256 阅读 · 0 评论 -
git 撤销 merging,git取消merge
$ git pull origin test// git pull合并代码的时候,若发生冲突,会处于merging状态,检查代码,发现自己的分支低于主分支,这个时候想撤销merge// 撤销merge$ git reset --hard HEAD (or sha_1) ...原创 2014-10-10 10:10:08 · 14425 阅读 · 2 评论 -
git efrror: RPC failed; result=22, HTTP code = 413 fatal: The remote end hung up
Git push代码的时候报错:$ git push joe wechat2Username for 'http://git.xxx.com': joe.le@xxx.comPassword for 'http://joe.le@xxx.com@git.xxx.com':Counting objects: 428, done.Delta compression using ...原创 2014-09-18 13:46:26 · 341 阅读 · 0 评论 -
git push 报错"fatal: The remote end hung up unexpectedly"
$ git push joe prod-2218-seoUsername for 'http://git.xxx.com': xxx.comPassword for 'http://xxx.com@git.xxx.com':Counting objects: 598, done.Delta compression using up to 8 threads.Compress...原创 2014-09-05 14:38:46 · 255 阅读 · 0 评论 -
Eclipse 手动安装 git 插件
1、下载:egit for Eclipse http://mirrors.hustunique.com/eclipse/egit/updates/org.eclipse.egit.repository-3.4.1.201406201815-r.zip 2、在Eclipse根目录新建 links文件夹 3、在links里新建 egit.link 文件:内容如下path=D:\...原创 2014-08-08 11:25:00 · 480 阅读 · 0 评论