Functions
WebDev/*nix assorted functions & hacks
Search
find all
Array
-
Bash
-
Classes
-
Config
-
DateTime
-
Debug
-
dotjs
-
File
-
foooo
-
Git
-
HTML
-
Images
-
Javascript
-
Linux
-
Math
-
Misc
-
MySQL
-
OS X
-
Reading
-
Redis
-
Shell scripts
-
snippets
-
SQL
-
Strings
-
TextMate
-
Web
-
\(^o^)/ Fun!
-
_Misc hacks
-
_Pages
Git
* Readme
*_General
.gitignore for only php files
bash: gld
Branch
cloning with custom SSH port
git branch in shell prompt
how to turn a project into a bare repo
Scripts (be afraid)
Stash
URLs
11
found
auth
Name:
Category: Git
Body:
First turn it into a git repo at all: # cd foobar # git init # git add . # git commit -m "initial commit" Then turn that into a bare repo (optionally back it up..): # cd .. # mv foobar/.git foobar.git # cd foobar.git # git config --bool core.bare true Now you can remove the old one and clone from the bare thing # cd .. # rm -rf foobar # git clone foobar.git Cloning into 'foobar'... done. #
Footer