git gui工具

来源:互联网 发布:淘宝电脑端描述模板 编辑:程序博客网 时间:2024/05/17 02:55
初学git  感觉不太适应  用git-gui图形界面就会感觉好很多

用git-gui & 命令 调出git gui工具


里面显示本地 和 服务器上 文件差异
然后删除本地文件
用git checkout packages/apps/Camera/res/values/strings.xml
这样的命令逐个从服务器上checkout下来


如果要把本地的提交
在git gui工具里 把本地修改的提交到 服务器缓存
然后用git push origin master把它提交到git服务器上去


git checkout -f .这就是强制性从服务器上down下来

如果遇到这样的问题
eric-MS-7732 android-ics # git checkout -f .
fatal: Unable to create '/workspace/QRD/liwei/android-ics/.git/index.lock': File exists.

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.
就需要删除lock先
eric-MS-7732 android-ics # r. .git/index.lock
再更新
eric-MS-7732 android-ics # git checkout -f .

0 0