workan on pyenvasaaaa
This commit is contained in:
@@ -1,20 +1,19 @@
|
||||
#!/bin/bash
|
||||
# usage
|
||||
## curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/setup_git.sh | "$SHELL"
|
||||
echo "Setting up Github"
|
||||
|
||||
echo "Enter Github Classic Token (https://github.com/settings/tokens)"
|
||||
read GITHUB_TOKEN
|
||||
read -p "Enter Github Classic Token (https://github.com/settings/tokens): " gh_token
|
||||
|
||||
echo "Enter Email Address"
|
||||
read EMAIL_ADDRESS
|
||||
read -p "Enter Email Address: " gh_email
|
||||
|
||||
echo "Enter Github Username"
|
||||
read GITHUB_USERNAME
|
||||
read -p "Enter Github Username: " gh_username
|
||||
|
||||
sudo apt update
|
||||
sudo apt install git gh -y
|
||||
|
||||
echo "Saving Token to ~/.gh_token"
|
||||
echo $GITHUB_TOKEN > ~/.gh_token
|
||||
echo $gh_token > ~/.gh_token
|
||||
chmod 600 ~/.gh_token
|
||||
|
||||
echo "Logging into Github"
|
||||
@@ -22,7 +21,7 @@ gh auth login --with-token < ~/.gh_token
|
||||
gh auth setup-git
|
||||
|
||||
echo "Configuring Git"
|
||||
git config --global user.email "$EMAIL_ADDRESS"
|
||||
git config --global user.name "$GITHUB_USERNAME"
|
||||
git config --global user.email "$gh_email"
|
||||
git config --global user.name "$gh_username"
|
||||
|
||||
echo "DONE WOOO :3~"
|
||||
Reference in New Issue
Block a user