Skip to content

Commit

Permalink
Add git pull and fix echo of username and email
Browse files Browse the repository at this point in the history
  • Loading branch information
citlaligm committed Jun 12, 2018
1 parent 88c5ab2 commit 33ab063
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions set_git.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
#!/bin/bash

# Make sure you have the latest version of the repo
echo
git pull
echo

# Ask the user for login details
read -p 'Git repository url: ' upstreamVar
read -p 'Git Username: ' userVar
read -p 'Git email: ' emailVar

echo
echo Thankyou $userVar, we now have your credentials
echo Thank you $userVar!, we now have your credentials
echo for upstream $upstreamVar. You must supply your password for each push.
echo

Expand All @@ -21,6 +26,6 @@ echo Please verify remote:
git remote -v
echo

echo Please verify credentials:
echo username: git config user.name
echo email git config user.email
echo Please verify your credentials:
echo username: `git config user.name`
echo email: `git config user.email`

0 comments on commit 33ab063

Please sign in to comment.