Archive | April 2013

Git Flow Command

To list/start/finish feature branches, use:

git flow feature
git flow feature start [name] [base]
git flow feature finish [name]

To push/pull a feature branch to the remote repository, use:

git flow feature publish [name]
git flow feature pull [remote] [name]

To list/start/finish release branches, use:

git flow release
git flow release start [release] [base]
git flow release finish [release]

To list/start/finish hotfix branches, use:

git flow hotfix
git flow hotfix start [release] []
git flow hotfix finish [release]

To list/start support branches, use:

git flow support
git flow support start [release] [base]



Git change remote URL

git remote -v
# View existing remotes

# origin (fetch)
# origin (push)

git remote set-url origin
# Change the 'origin' remote's URL

git remote -v
# Verify new remote URL

# origin (fetch)
# origin (push)

PHP command line syntax checking

Thanks to this bro for the post that help me find the syntax error inside my bunch of php code (

Syntax checking a single PHP file from the command line

The syntax for checking is like this, where the -l flag is a lower case L:
php -l filename

Syntax check all PHP files in the current directory

for i in *.php; do php -l $i; done

Syntax check all PHP files in the current directory and all subdirectories

find . -name \*.php -exec php -l "{}" \;