32 lines
1.0 KiB
Bash
32 lines
1.0 KiB
Bash
|
#! /bin/bash
|
||
|
|
||
|
mkdir -p ~/.ssh
|
||
|
ssh-keyscan -H pika-os.com >> ~/.ssh/known_hosts
|
||
|
ssh-keyscan -H git.pika-os.com >> ~/.ssh/known_hosts
|
||
|
#echo -e "Host git.pika-os.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
||
|
#echo -e "Host git.pika-os.com\n\tIdentityFile ~/.ssh/id_rsa\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
|
||
|
#ssh-agent -a $SSH_AUTH_SOCK > /dev/null
|
||
|
#ssh-add - <<< "$1"
|
||
|
|
||
|
#export GIT_SSH_COMMAND="ssh -F ~/.ssh/config"
|
||
|
|
||
|
#ssh -o StrictHostKeyChecking=no -vT git@git.pika-os.com
|
||
|
#ssh -vT git@git.pika-os.com
|
||
|
|
||
|
# Commit changes to git
|
||
|
git config --global user.name 'Github Gitea Push Back Key - Cosmo'
|
||
|
git config --global user.email 'cosmo@pika-os.com'
|
||
|
#git config --global --add safe.directory /__w/gitea-pika-first-setup/gitea-pika-first-setup
|
||
|
|
||
|
git clone git@git.pika-os.com:custom-gui-packages/pika-first-setup
|
||
|
|
||
|
rm -rfv ./gitea-pika-first-setup/.git
|
||
|
cp -rfv ./pika-first-setup/.git ./gitea-pika-first-setup/
|
||
|
|
||
|
cd ./gitea-pika-first-setup
|
||
|
git add .
|
||
|
git commit -am"Github Mirror Push Back"
|
||
|
#git config pull.rebase true
|
||
|
#git pull
|
||
|
git push
|