All pages in tagged with #Git


Ignoring Symlinks in Git Repos

Keeping unwanted symlinks out of your repositories.

Monday Sep 29, 2014 — 1 minute read — 163 words

While working on a project that does a lot of symlinking by default, the need to keep symlinks out of the Git repository became evident. Fortunately, it’s not too hard. The solution came from this post’s answers. Thanks guys! The Command Just run the following command from the base directory of your Git repository, and it will automagically add all the symlinked files to the base .gitignore file. for f in $(git status --porcelain | grep '^??' | sed 's/^??

Read More


Anahita Social Custom Development Workflow

Ensure you get the latest code without overwriting custom core changes.

Monday Jul 14, 2014 — 2 minute read — 394 words

Anahita is a cool open-source social networking platoform written in PHP. It has a super-active, helpful community lead by Rastin Mehr. If you’re working on a website that’s powered by Anahita, you’ll want to keep up-to-date with the latest code changes via composer. If you’re not familiar with Composer, visit the project homepage to get up to speed. Updating the Anahita Codebase Updating the Anahita codebase is trivial with composer. Just cd into the root directory and run the following to get the latest and greatest: composer update Before you do that, though, read on.

Read More