Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nodeStudy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马旭烽
nodeStudy
Commits
453259bf
Commit
453259bf
authored
Jul 13, 2023
by
马旭烽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat: 初步日报助手
parent
4703103f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
git日志.ps1
扩展脚本/git日志.ps1
+60
-0
No files found.
扩展脚本/git日志.ps1
0 → 100644
View file @
453259bf
# https://www.qs5.org/Post/713.html 参考
# https://www.qs5.org/Post/713.html 参考
# https://git-scm.com/docs/git-log/zh_HANS-CN
# $PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
# $PSDefaultParameterValues['*:Encoding'] = 'utf8'
# https://rkeithhill.wordpress.com/2010/05/26/handling-native-exe-output-encoding-in-utf8-with-no-bom/
[
System.Console]::OutputEncoding
=
[
System.Text.Encoding]::UTF8
$PRO_MALL
=
'D:\Project\pro-mall'
;
$PRO_MICRO
=
'D:\Project\pro-micro-services'
;
$PRO_MOBILE
=
'D:\Project\pro-mobile'
;
$PRO_APP
=
'D:\Project\pro-mobile-app'
;
$PRO_ADMIE
=
'D:\Project\pro-admin'
;
$ZR_PRO_MICRO
=
'D:\Project\zr\front-micro-services'
;
$ZR_PRO_MALL
=
'D:\Project\zr\front-mall'
;
$ZR_PRO_MOBILE
=
'D:\Project\zr\front-app'
;
$ZR_PRO_APP
=
'D:\Project\zr\front-applet'
;
$TASKS
=
$PRO_MALL
,
$PRO_MICRO
,
$PRO_MOBILE
,
$PRO_APP
,
$PRO_ADMIE
,
$ZR_PRO_MICRO
,
$ZR_PRO_MALL
,
$ZR_PRO_MOBILE
,
$ZR_PRO_APP
;
$OUT_FILE
=
'D:\Study\nodeStudy\扩展脚本\temp.txt'
;
Remove-Item
$OUT_FILE
;
New-Item
$OUT_FILE
foreach
(
$TASK
in
$TASKS
)
{
Set-Location
$TASK
Write-Output
"生成路径 ==========
$TASK
"
# git --no-pager log --author="maxufeng" --since=24.hours --no-merges --pretty=format:"%B" | Out-File -Encoding utf8 -Path $OUT_FILE;
git --no-pager log --author
=
"maxufeng"
--since
=
24.hours --no-merges --pretty
=
format:
"%B"
|
Add-Content
-Encoding utf8 -Path
$OUT_FILE
;
}
Write-Output
"
---------------------------------
礼乐崩坏,心系羽族,合乎舟礼。666
---------------------------------
今天我做了哪些事情,😊
问问自己什么是最珍贵的,
是否有去珍惜,
莫道离开悔忆恨,
但愿人生长安久。
👇👇👇👇👇👇👇👇👇👇👇👇👇👇
"
Get-Content
-Path
$OUT_FILE
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment