15 lines
293 B
Bash
Executable file
15 lines
293 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# check if this is already a git repo.
|
|
if [[ -d ".git" ]]; then
|
|
echo "Found the .git directory. Already initialized?"
|
|
exit 1
|
|
fi
|
|
|
|
# sync.
|
|
git init
|
|
git remote add origin https://git.voronind.com/voronind/linux.git
|
|
git fetch
|
|
git reset origin/master
|
|
git checkout -t origin/master
|