Skip to content

Commit 30e2f12

Browse files
committed
dockerfile: Add git aliases
1 parent d1f7526 commit 30e2f12

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ SHELL ["/bin/bash", "-c"]
88
RUN apt-get update && \
99
apt-get install -y git
1010

11+
# Configure Git aliases
12+
RUN git config --global alias.undo "reset --soft HEAD^" && \
13+
git config --global alias.graph "log --all --graph --decorate --oneline" && \
14+
git config --global alias.i "init"
15+
1116
# Install .NET SDK
1217
RUN apt-get update && \
1318
apt-get install -y wget apt-transport-https && \

0 commit comments

Comments
 (0)