Skip to content

Commit ed9014a

Browse files
committed
✨ [feat][git] new git commit template with new comment string
1 parent 879be9b commit ed9014a

3 files changed

Lines changed: 29 additions & 30 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Example: https://github.com/codespaces-examples/node
12
FROM ubuntu:latest
23

34
ENV USER_NAME=tomy0000000
@@ -23,14 +24,11 @@ USER $USER_NAME
2324
# Set the working directory
2425
WORKDIR /home/$USER_NAME/.dotfiles
2526

26-
# Copy all dotfiles
27-
COPY --chown=$USER_NAME:$USER_NAME . .
27+
# Clone the latest dotfiles
28+
RUN bash -c "$(curl -fsSL https://init.tomy.tech)"
2829

2930
# Install default targets
3031
RUN make all
3132

3233
# Install Shell
3334
RUN make ubuntu-zsh
34-
35-
# Start shell
36-
CMD ["zsh"]

pkg/git/.git_commit_template

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
# Title (50 chars)
2-
# <type>[optional scope]: <description>
3-
#
4-
# Add a ! after type is this is a BREAKING CHANGE.
5-
#
6-
# 🧹 chore:
7-
# ⌛️ ci:
8-
# 📖 docs:
9-
# 🌟 feat:
10-
# 🛠 fix:
11-
# 🏎 perf:
12-
# ❇️ refactor:
13-
# 💅🏻 style:
14-
# 🧪 test:
15-
##################################################
16-
#
17-
# Body (Optional)
18-
#
1+
// Title (50 chars)
2+
// [type][optional scope] <description>
3+
//
4+
// Add a ! before type is this is a BREAKING CHANGE.
5+
//
6+
// 🧹 [chore][]
7+
// ⌛️ [ci][]
8+
// 📖 [docs][]
9+
// 🌟 [feat][]
10+
// 🛠 [fix][]
11+
// 🏎 [perf][]
12+
// ❇️ [refactor][]
13+
// 💅🏻 [style][]
14+
// 🧪 [test][]
1915

20-
#
21-
# Co-authored-by: Tomy Hsieh <git@tomy.me>
22-
# Co-authored-by:
23-
#
24-
# Footer (Optional)
25-
# BREAKING CHANGE:
26-
#
16+
//
17+
// Body (Optional)
18+
//
19+
20+
//
21+
// Co-authored-by: Tomy Hsieh <git@tomy.me>
22+
// Co-authored-by:
23+
//
24+
// Footer (Optional)
25+
// BREAKING CHANGE:
26+
//

pkg/git/.gitconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ template = "~/.dotfiles/pkg/git/.git_commit_template"
5959

6060
[core]
6161
attributesFile = "~/.dotfiles/pkg/git/.gitattributes"
62+
commentString = "//"
6263
excludesFile = "~/.dotfiles/pkg/git/.gitignore"
6364
editor = "nano"
6465

0 commit comments

Comments
 (0)