mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-16 00:12:48 +00:00
18 lines
246 B
Bash
Executable File
18 lines
246 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# funcs (mac doesnt have realpath)
|
|
realpath() {
|
|
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
|
|
}
|
|
|
|
|
|
path_repo="`realpath ~/comrad/code`"
|
|
wd=`pwd`
|
|
|
|
cd $path_repo
|
|
git pull
|
|
git add .
|
|
git commit -m 'comrad update!'
|
|
git push
|
|
cd $wd
|