forked from udacity/CarND-Extended-Kalman-Filter-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
set_git.sh
31 lines (24 loc) · 673 Bytes
/
set_git.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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 Thank you $userVar!, we now have your credentials
echo for upstream $upstreamVar. You must supply your password for each push.
echo
echo setting up git
git config --global user.name $userVar
git config --global user.email $emailVar
git remote set-url origin $upstreamVar
echo
echo Please verify remote:
git remote -v
echo
echo Please verify your credentials:
echo username: `git config user.name`
echo email: `git config user.email`