-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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` |