-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (24 loc) · 845 Bytes
/
Makefile
File metadata and controls
28 lines (24 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
##首次编译
build:
mvn clean install
# 当需要升级版本时,执行该命令
version=1.3.1
update_version:
mvn versions:set -DnewVersion=${version} versions:commit
mvn -DskipTests clean install
reset_git:
git checkout --orphan new_branch
git add -A -- :!/.idea/ :!/target/ :!/pages/node_modules/ :!/pages/.astro/ :!/pages/.cache/
git commit -m "Initial commit"
git branch -D master
git branch -m master
git push -f origin master
# 将指定commitId之后的所有提交压缩成一个提交
# 使用方法: make squash_commits commitId=<commitId>
commitId="d8e90d734da128435f5282369ad1abe97f1e0308"
squash_commits:
git reset --soft $(commitId)
git add -A -- :!/.idea/ :!/target/ :!/pages/node_modules/ :!/pages/.astro/ :!/pages/.cache/
git commit -m "v1.2.0 开发"
git push -f origin master
git push -f github master