#Git Server-less repo / remote setup This is an example of how to setup two directories to serve as a local and remote in the GIT protocal. Basically GIT is like the old RCS system where all things are filesystem based. All the SSH and HTTPS sugar are just spice
###Demo.cmd walkthrough
- First 13 lines just set up directories.
- Line 14 creates the remote repo (bare for remote).
- Line 17 creates the local repo (no bare here).
- Line 18 adds the remote repo that we set up in line 14 as a 'file://' url.
- Next we create a file, add it and commit it
- Line 22 we push with the '-u' option sticking the remote 'origin' and the branch 'master'
- Create another file to add and commit
- Line 26 we don't need to name the remote or branch since we 'stuck' it earlier
###Notes This example uses files on your local filesystem, but you could easily make them remote files with with the windows \\server\share\directory syntax, though you will need to know how to code the file URL. For windows shares (from windows) it would look like 'file://\\server\share\directory'
###Credit I stole this from Jimmy Hill's blog post [archive]
###Shortcuts
- This Repo's Homepage - http://git.io/veOi1
- This Repo's Cloen URL - http://git.io/veOip
May go without saying, but spaces in the directory path will likely mess this up
By @d4n13