-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
windows line endings --> unix line endings
- Loading branch information
=
committed
Jun 12, 2018
1 parent
14c6b70
commit 3397b86
Showing
1 changed file
with
25 additions
and
25 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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# 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 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 credentials: | ||
echo username: git config user.name | ||
#!/bin/bash | ||
|
||
# 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 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 credentials: | ||
echo username: git config user.name | ||
echo email git config user.email |