Revision #9 has been created by marcanuy on Mar 18, 2012, 8:19:20 PM with the memo:
« previous (#8)
Starting your Yii Project Reference Guide (with Git VCS in Linux)
git, github, reference, guide, yii
I've found useful to have a step by step reference guide to work with Git with most used commands, feel free to update it with useful information you may find interesting too.
If you don't have Yii yet
tart your project
(being at root folder)
make git add empty directories to the repository
[...](source [https://gist.github.com/18780](https://gist.github.com/18780 "git script") )
Adding a yii extension repository inside your repo at a specific path (e.g. we will add https://git.gitorious.org/lightopenid/lightopenid.git in 'protected/extensions/lightopenid')
Edit .gitignore file in root folder and add dirs/files you don't want to be in git repo
Use ! to negate the pattern:
Make your first commit
git commit -a "Initial version"
If you want to add your forked repo from github ( i.e.: email@example.com:marcanuy/Comments-module.git ) from another repo (i.e.: git://github.com/segoddnja/Comments-module.git) to the extensions directory, then:
Now you are ready to go!