Quickies

[categories] [index] [all (527)] [latest]

Git
  1. #!/usr/bin/sh
    
    ORIGIN=$HOME'/Dropbox/dropbox.git'
    CLONE=$HOME'/Projects/dropbox'
    
    mkdir -p "$ORIGIN"
    cd "$ORIGIN"
    git init --bare
    
    git clone "$ORIGIN" "$CLONE"
    
    cd "$CLONE"
    touch test.txt
    git add test.txt 
    git commit -m "Initial commit"
    git push origin master