From 812c33998064f92f9e9f24eb42d2954c9320800b Mon Sep 17 00:00:00 2001 From: Eshan Roy <148610067+eshanized@users.noreply.github.com> Date: Tue, 9 Jul 2024 00:50:57 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20build(option):=20add=20?= =?UTF-8?q?more=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.sh b/config.sh index d387897d..b9290e34 100755 --- a/config.sh +++ b/config.sh @@ -11,6 +11,7 @@ print_options() { echo "1. 📝 Enter GitHub username and password" echo "2. 🔑 Enter GitHub personal access token" echo "3. 📁 Use existing GitHub credentials from ~/.gitconfig" + echo "4. Github user and email config" } # Print options and prompt user to select @@ -39,6 +40,14 @@ case $OPTION in 3) echo "Using existing GitHub credentials from ~/.gitconfig" ;; + 4) + echo "Enter github email address: " + read -r USEREMAIL + echo "Enter GitHub username: " + read -r USERNAME + git config --global user.email "$USEREMAIL" + git config --global user.name "$USERNAME" + ;; *) echo "Invalid option. Exiting." exit 1;;