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:
Didn't write this one, but it works nicely # script #!/bin/bash read -p "Commit description: " desc git add :/ && \ git add -u :/ && \ git commit -m "$desc" && \ git pull && \ git push # end of script Then there's a post-update hook that goes # script unset GIT_DIR unset GIT_WORK_TREE cd /usr/share/nginx git pull --verbose # end of script Basically it jumps to another repo with working directory and does a pull. Yeah, that's all. I have little idea what the first two lines do, but I think they un-set some context that is re-set(-if-not-exists, or something) by the git pull from the other repo.
Footer