美文网首页
repo使用

repo使用

作者: 小时候很能吃 | 来源:发表于2017-07-11 01:52 被阅读0次

一.使用git命令

1.回滚整个项目到当前最新版本

repo forall -c git reset --hard HEAD  

2.撤销本地修改的文件

git checkout -- a.txt

# 删除 untracked files

git clean -f

# 连 untracked 的目录也一起删掉

git clean -fd

# 连 gitignore 的untrack 文件/目录也一起删掉 (慎用,一般这个是用来删掉编译出来的 .o之类的文件用的)

git clean -xfd

# 在用上述 git clean 前,墙裂建议加上 -n 参数来先看看会删掉哪些文件,防止重要文件被误删

git clean -nxfd

git clean -nf

git clean -nfd

相关文章

  • repo 使用

    当依赖库多的时候,使用 repo 好比散兵有了将军 ,用处非常大 . 为方便理解,对应 git 来阐述 repo...

  • repo使用

    一.使用git命令 1.回滚整个项目到当前最新版本 repo forall -c git reset --hard...

  • Repo使用

    Repo 是一款工具,可让您在 Android 环境中更轻松地使用 Git。 安装Repo 要安装 Repo,请执...

  • Maven导入本地包

    使用scope 使用本地repo

  • 使用CocoaPods创建私有Spec Repo管理项目公共组件

    使用CocoaPods创建私有Spec Repo管理项目公共组件 使用CocoaPods创建私有Spec Repo...

  • repo/gerrit总结

    楔子 新接手一个项目,要用到repo和gerrit,总结下repo使用过程。 repo/gerrit概述 repo...

  • repo 使用小结

    切分支 比如: 这条命令相当于给art/runtime这个模块执行git checkout -b develop ...

  • Repo 使用详解

    Repo 是一款工具,可让您在 Android 环境中更轻松地使用 Git。 安装GIT 省略 安装Repo 要安...

  • AOSP编译真机镜像

    源码准备 准备repo工具 Repo使用: http://source.android.com/source/us...

  • Centos 7.x 安装Mysql、ActiveMQ、Mong

    安装Mysql 5.7 一、安装YUM Repo 1.下载yum repo配置文件 2.repo的安装 二、使用y...

网友评论

      本文标题:repo使用

      本文链接:https://www.haomeiwen.com/subject/ftlphxtx.html