This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.bootstrap.sh

17 lines
443 B
Bash
Raw Normal View History

2023-10-31 21:36:17 +03:00
#!/bin/bash
# check if this is already a git repo.
if [[ -d ".git" ]]; then
2023-12-05 22:16:14 +03:00
echo "Found the .git directory. Already initialized?"
exit 1
2023-10-31 21:36:17 +03:00
fi
# sync.
2023-10-31 21:48:37 +03:00
git init &> /dev/null
git remote add origin https://git.voronind.com/voronind/linux.git &> /dev/null
git fetch &> /dev/null
git reset origin/master &> /dev/null
2023-10-31 21:43:52 +03:00
# git checkout -t origin/master
2023-10-31 21:48:37 +03:00
git reset --hard HEAD &> /dev/null
git branch --set-upstream-to=origin/master master &> /dev/null