pika-first-setup/.github/github_pushback.sh

24 lines
872 B
Bash
Raw Normal View History

2024-12-04 19:49:35 +03:00
#! /bin/bash
2024-12-05 00:01:37 +03:00
mkdir -p ~/.ssh
2024-12-05 15:45:22 +03:00
ssh-keyscan -H pika-os.com >> ~/.ssh/known_hosts
ssh-keyscan -H git.pika-os.com >> ~/.ssh/known_hosts
2024-12-05 00:11:36 +03:00
#echo -e "Host git.pika-os.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
2024-12-05 15:33:50 +03:00
#echo -e "Host git.pika-os.com\n\tIdentityFile ~/.ssh/id_rsa\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
2024-12-04 23:42:22 +03:00
#ssh-agent -a $SSH_AUTH_SOCK > /dev/null
#ssh-add - <<< "$1"
2024-12-04 20:51:52 +03:00
2024-12-05 15:43:03 +03:00
#export GIT_SSH_COMMAND="ssh -F ~/.ssh/config"
2024-12-05 00:14:00 +03:00
2024-12-05 15:50:33 +03:00
#ssh -o StrictHostKeyChecking=no -vT git@git.pika-os.com
ssh -vT git@git.pika-os.com
2024-12-04 19:49:35 +03:00
# Commit changes to git
2024-12-04 18:26:45 +01:00
git config --global user.name 'ferreo'
git config --global user.email 'harderthanfire@gmail.com'
2024-12-04 19:49:35 +03:00
git config --global --add safe.directory /__w/gitea-pika-first-setup/gitea-pika-first-setup
2024-12-04 20:04:56 +03:00
git remote set-url origin git@git.pika-os.com:custom-gui-packages/pika-first-setup
2024-12-04 19:49:35 +03:00
git add .
git commit -am"Github Mirror Push Back"
git push