Skip to content

Commit 2a3eab8

Browse files
committed
Adds git pull and fix echo of the user name and email
1 parent d067bce commit 2a3eab8

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

‎set_git.sh‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
#!/bin/bash
22

3+
# Make sure you have the latest version of the repo
4+
echo
5+
git pull
6+
echo
7+
38
# Ask the user for login details
49
read -p 'Git repository url: ' upstreamVar
510
read -p 'Git Username: ' userVar
611
read -p 'Git email: ' emailVar
712

813
echo
9-
echo Thankyou $userVar, we now have your credentials
14+
echo Thank you $userVar!, we now have your credentials
1015
echo for upstream $upstreamVar. You must supply your password for each push.
1116
echo
1217

@@ -21,6 +26,6 @@ echo Please verify remote:
2126
git remote -v
2227
echo
2328

24-
echo Please verify credentials:
25-
echo username: git config user.name
26-
echo email git config user.email
29+
echo Please verify your credentials:
30+
echo username: `git config user.name`
31+
echo email: `git config user.email`

0 commit comments

Comments
 (0)