2024-05-09 13:43:01 +02:00
|
|
|
#!/bin/bash
|
|
|
|
# Copyright 2024 Hong Yongmin <https://revi.xyz>
|
|
|
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
echo 'Now starting deploy script'
|
|
|
|
|
2024-05-20 16:19:50 +02:00
|
|
|
git show --minimal --no-patch --pretty=oneline
|
2024-05-09 13:43:01 +02:00
|
|
|
|
|
|
|
echo 'Now copying git defaults'
|
2024-05-20 16:19:50 +02:00
|
|
|
rm -rf ~/.gitignore
|
|
|
|
echo 'moving .gitignore'
|
2024-05-09 13:43:01 +02:00
|
|
|
cp default.gitignore ~/.gitignore
|
2024-05-20 16:19:50 +02:00
|
|
|
rm -rf ~/.gitconfig
|
|
|
|
echo 'moving .gitconfig'
|
2024-05-09 13:43:01 +02:00
|
|
|
cp default.gitconfig ~/.gitconfig
|
2024-05-20 16:19:50 +02:00
|
|
|
rm -rf ~/.gitaliases
|
|
|
|
echo 'moving .gitaliases'
|
2024-05-09 13:43:01 +02:00
|
|
|
cp .gitaliases ~/.gitaliases
|
2024-05-20 16:19:50 +02:00
|
|
|
echo 'Done!'
|