Created
March 31, 2013 08:30
-
-
Save victorcreed/5279984 to your computer and use it in GitHub Desktop.
my dot file to copy current git project. sync this folder to any cloud service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mk_setup_backup(){ | |
if [ "$#" -ne 1 ] | |
then | |
echo "Error!!!" | |
exit | |
else | |
mkdir -p $HOME/local_backups/$1 | |
d_path=`pwd` | |
cd $HOME/local_backups/$1 | |
git init --bare | |
echo "$d_path" | |
cd $d_path | |
git remote add local-backup /home/victor/local_backups/$1 | |
# cd /home/victor/Ubuntu\ One/local_backups/$1 | |
echo "$1" | |
fi | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment