发布于 2026-01-06 3 阅读
0

GIT 命令:一款使用 ElectronJS 和 ReactJS 构建的跨平台桌面应用程序。Git 命令

GIT 命令:使用 ElectronJS 和 ReactJS 构建的跨平台桌面应用程序。

Git 命令

截屏

Git 命令

Git 命令

GIT Commands 是一款使用 ElectronJS 和 ReactJS 构建的跨平台桌面应用程序,可快速访问主要的 Git 命令,并提供指向文档的直接链接。

先决条件

  • 需要 Node 版本 >= 7 和 npm 版本 >= 4。
  • 如果您在安装或编译此项目时遇到问题,请参阅我们的调试指南。

安装

首先,通过git克隆仓库:

git clone --depth=1 https://github.com/mariorodeghiero/git-commands.git your-project-name
Enter fullscreen mode Exit fullscreen mode

然后使用 yarn 安装依赖项。

$ cd your-project-name
$ yarn
Enter fullscreen mode Exit fullscreen mode

注意:如果不能使用yarn,请运行npm install

跑步

在当前环境下启动应用程序dev

$ npm run dev
Enter fullscreen mode Exit fullscreen mode

包装

将应用程序打包以供本地平台使用:

$ npm run package
Enter fullscreen mode Exit fullscreen mode

将应用程序打包到所有平台:

首先,请参考多平台构建文档了解依赖项。

然后,

$ npm run package-all
Enter fullscreen mode Exit fullscreen mode

将应用程序与选项打包在一起:

$ npm run package -- --[option]
Enter fullscreen mode Exit fullscreen mode

提示

为了提高此应用程序的易用性,您可以创建键盘快捷键以便快速启动。

  • 对于 Mac_OS,请使用“Automator”。
  • 对于 Windows 系统,请访问应用程序的“属性”。

如果你喜欢这个项目,请贡献改进意见或在 GitHub 上给我一颗星 ⭐️

谢谢!

文章来源:https://dev.to/mariorodeghiero/git-cheatsheet-2imn