npm-egit

1.0.2 • Public • Published

npm-egit

解决 git clone 非空文件夹问题

github仓库

https://github.com/chenzejiang/npm-egit

npm包地址

https://www.npmjs.com/package/npm-egit

安装

mac: sudo npm install npm-egit -g
win: npm install npm-egit -g

egit -v // 1.0.2

使用

egit clone https://github.com/chenzejiang/test.git

流程

  • 1、 在项目根路径执行 git clone {{ address }} egit clone 地址到 egit 文件夹(新建)
  • 2、 移动 egit 的 .git 到 项目根文件
  • 3、 删除新建的 egit文件夹
  • 4、 使用git命令 (git reset --hard HEAD) 回退版本信息

/npm-egit/

    Package Sidebar

    Install

    npm i npm-egit

    Weekly Downloads

    0

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    3.4 kB

    Total Files

    4

    Last publish

    Collaborators

    • chenzejiang