Git 官网:https://git-scm.com/
设置提交时的 NAME 和 EMAIL:
$ git config --global user.name "nikename"
$ git config --global user.email "example@example.com"
查看设置的 NAME 和 EMAIL:
$ git config user.name
$ git config user.email
git log
基础查看提交日志
$ git log
commit 2c8fcc81f23aa96073250e1d052473337c968d88 (HEAD -> master, origin/master)
Author: yogwang <yogwang@yog.red>
Date: Mon Jun 17 12:10:01 2019 +0800
wrote a readme file
commit 87c9d12bdd979859811fc224c7f9ade7b97b0d13
Author: yogwang <yogwang@yog.red>
Date: Mon Jun 17 09:52:50 2019 +0800
add distributed
commit 77ac9552a7fb2e8d1f57d324d991de11efa897f2
Author: yogwang <yogwang@yog.red>
Date: Mon Jun 17 09:50:33 2019 +0800
wrote a readme file
Git 官网:https://git-scm.com/
$ git config --global user.name "nikename"
$ git config --global user.email "example@example.com"
$ git config user.name
$ git config user.email
npm
初始化一个项目$ mkdir my-app
$ cd my-app
$ npm init --y
Wrote to E:\my-app\package.json:
{
"name": "my-app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
修改入口文件为 main.js
并且添加 start
脚本引导 Node 来执行 Electron