wip
This commit is contained in:
parent
56fe3a0c7c
commit
2271246157
1 changed files with 9 additions and 8 deletions
|
@ -40,17 +40,18 @@ gitUserSetup() {
|
|||
git config --global user.email "$g_mail"
|
||||
git config --global init.defaultBranch "$g_branch"
|
||||
|
||||
echo_note "Enter your authentication token:"
|
||||
read -r -s g_token # The '-s' flag hides input for privacy
|
||||
if ! -e "$CREDENTIALS_FILE"; then
|
||||
echo_note "Enter your authentication token:"
|
||||
read -r -s g_token # The '-s' flag hides input for privacy
|
||||
# Append the new credentials to the file
|
||||
echo "https://$g_username:$g_token@$g_domain" >>"$CREDENTIALS_FILE"
|
||||
|
||||
# Append the new credentials to the file
|
||||
echo "https://$g_username:$g_token@$g_domain" >>"$CREDENTIALS_FILE"
|
||||
echo "Credentials added for $g_domain in $CREDENTIALS_FILE"
|
||||
|
||||
echo "Credentials added for $g_domain in $CREDENTIALS_FILE"
|
||||
git config --global credential.helper store
|
||||
|
||||
git config --global credential.helper store
|
||||
|
||||
chmod 600 "$HOME/.git-credentials"
|
||||
chmod 600 "$HOME/.git-credentials"
|
||||
fi
|
||||
}
|
||||
|
||||
gitDirSetup() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue