git错误解决 -- 小结

1.今天 当我  执行  Git add  somefile 的时候,出现 如下 错误:

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

解决方法:

rm -f ./.git/index.lock

2. 编译ICS时 出现 如下错误:

build/core/Java.mk:20: *** dalvik/dexgen: Invalid LOCAL_SDK_VERSION ‘4‘ Choices are: current .  Stop.

解决方法:

rm -rf prebuilt ; repo sync prebuilt

时间: 2024-08-28 14:47:46

git错误解决 -- 小结的相关文章

Git错误解决(windows版本下的Git Shell)

第一个问题:怎么也不能将自己本地仓库代码pull到GitHub网站上? git push origin master Warning: Permanently added 'github.com,192.30.255.112' (RSA) to the list of known hosts.To github.com:lanshanxiao/yunweather.git ! [rejected] master -> master (fetch first)error: failed to pu

android studio下gradle与Git错误解决方法

Error: Gradle: Execution failed for task ':mytask' > A problem occurred starting process 'command 'jni/ndk-build.cmd" 这是win7打开android程序出现的问题.解决方法:打开build.gradle,找到"commandLine"这行,把commandLine 'ndk-build', '-C', file('jni').absolutePath改为

git 错误解决

git pull 失败 ,提示:fatal: refusing to merge unrelated histories 关于这个问题,可以参考http://stackoverflow.com/questions/37937984/git-refusing-to-merge-unrelated-histories. 在进行git pull 时,添加一个可选项 git pull origin master --allow-unrelated-histories

6种常见的Git错误以及解决的办法

我们都会犯错误,尤其是在使用像Git这样复杂的东西时.如果你是Git的新手,可以学习如何在命令行上开始使用Git.下面介绍如何解决六个最常见的Git错误. Photo by?Pawel Janiak?on?Unsplash 1. 最后一次代码提交时有拼写错误 经过几个小时的编码后,拼写错误很容易带到你的提交消息里面. 幸运的是,有一个简单的解决方案. git commit --amend 这会打开编辑器,并允许你更改最后一次提交消息. 没有人知道你把"addded"单词多加了一个字母&

错误:error: failed to push some refs to 'https://github.com/pzq7025/KG.git'的解决办法

一.问题在进行[git push orgin master]的时候出现如下错误 ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/pzq7025/KG.git' hint: Updates were rejected because a pushed branch tip is behind its remote hint: counter

Git 的BUG小结

Git 在push的时候出现了: fatal: The remote end hung up unexpectedly 在网上找了很多  发现出现了以下错误提示也可能是相同的问题: error: RPC failed; result=22, HTTP code = 411 fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly Everything up-to-date 在网上查到

阿里云Windows server 2008服务器搭建VPN 图文教程,购买境外服务器自建vpn,Win8/win10 连接VPN被阻止,出现812错误解决方法

阿里云Windows server 2008服务器搭建VPN 图文教程(超详细) 第一步:购买阿里云服务器,本文使用的是Windows Server 2008 R2 企业版64位中文版 IP地址:47.88.151.129,所属节点:亚太(新加坡) 服务器配置:2核,4GB,带宽10Mbps 第二步: 打开服务器管理器,点击添加角色,如下图: 本帖隐藏的内容然后弹出如下图所示,点击下一步: 点击后,如下图,勾选网络策略和网络服务,然后点击下一步: 接着继续点击下一步,直到弹出如下图所示的页面,勾

git 错误:

git  错误: $ git commit -afatal: Unable to create 'e:/git/Android/XXXXXX/.git/index.lock': File exists. If no other git process is currently running, this probably means agit process crashed in this repository earlier. Make sure no other gitprocess is

openwrt编译Build dependency: Please do not compile as root.错误解决

Checking 'working-make'... ok. Checking 'case-sensitive-fs'... ok. Checking 'getopt'... ok. Checking 'fileutils'... ok. Checking 'working-gcc'... ok. Checking 'working-g++'... ok. Checking 'ncurses'... ok. Checking 'zlib'... ok. Checking 'gawk'... ok