-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit_setup.sh
More file actions
executable file
·23 lines (19 loc) · 847 Bytes
/
git_setup.sh
File metadata and controls
executable file
·23 lines (19 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/zsh
# =============================================================================
# git_setup.sh — Git global user configuration
# =============================================================================
#
# Prompts for your full name and email address, then writes them to the
# global Git config (~/.gitconfig). Run this once after cloning the repo
# to personalise your Git identity.
#
# Usage:
# zsh git_setup.sh
# =============================================================================
echo "Type in your first and last name (no accent or special characters - e.g. 'ç'): "
read -r full_name
echo "Type in your email address (the one used for your GitHub account): "
read -r email
git config --global user.email "$email"
git config --global user.name "$full_name"
echo "👌 Awesome $full_name <$email>, all set."