{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/3282","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/3282/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/3282/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/3282/events","html_url":"https://github.com/yiisoft/yii2/issues/3282","id":32356216,"number":3282,"title":"git ignore many files in my yii2 project","user":{"login":"warrence","id":2050050,"avatar_url":"https://avatars.githubusercontent.com/u/2050050?v=3","gravatar_id":"","url":"https://api.github.com/users/warrence","html_url":"https://github.com/warrence","followers_url":"https://api.github.com/users/warrence/followers","following_url":"https://api.github.com/users/warrence/following{/other_user}","gists_url":"https://api.github.com/users/warrence/gists{/gist_id}","starred_url":"https://api.github.com/users/warrence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warrence/subscriptions","organizations_url":"https://api.github.com/users/warrence/orgs","repos_url":"https://api.github.com/users/warrence/repos","events_url":"https://api.github.com/users/warrence/events{/privacy}","received_events_url":"https://api.github.com/users/warrence/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-04-28T12:51:59Z","updated_at":"2015-01-07T15:00:40Z","closed_at":"2014-04-28T14:26:40Z","body":"Hi, im newbie in github. I have started to develop my application using yii2, and push it to my github account so that i can pull them to my client's server, it was really convenient so i don have to remember what file have i change and what file i need to upload to my client's server. I really love it, it save a lots of my time.\r\n\r\nBut then i realize one thing, git ignore many of Yii2 file, especially those in vendor folder. Although i have remove /vendor line in root .gitignore, and folder in vendor are start to sync to my github account, but somehow many files in there still being ignored which i cant file which .gitignore file are ignoring them. Example file below:\r\n\r\nvendor/yiisoft/yii2/Yii.php\r\nvendor/yiisoft/yii2/base/Action.php\r\nvendor/yiisoft/yii2/base/ActionEvent.php\r\nvendor/yiisoft/yii2/base/ActionFilter.php\r\nvendor/yiisoft/yii2/base/Application.php\r\nvendor/yiisoft/yii2/base/ArrayAccessTrait.php\r\nvendor/yiisoft/yii2/base/Arrayable.php\r\nvendor/yiisoft/yii2/base/ArrayableTrait.php\r\nvendor/yiisoft/yii2/base/Behavior.php\r\nvendor/yiisoft/yii2/base/BootstrapInterface.php\r\nvendor/yiisoft/yii2/base/Component.php\r\n\r\nThis is only small amount of them, i tried to use \"git status --ignored\" it show me a long list of file being ignored.\r\n\r\nI understand that this problem can be solve if i manually installed yii2 using composer.phar, but i actually want my whole developed application to be able to pull down to client's server and just need to do the /init to create some local configuration file and migrate to migrate their database, then it can be run like how it looks like in my development server.\r\n\r\n My question now is:\r\n\r\n1. Which .gitignore file are ignoring all this file when i commit and sync?\r\n2. Is there any reason they are being ignored when i commit and sync?\r\n3. Am i using github in the wrong way to my client for the first installation by just to clone my project into client's server (since many of the files are being ignored when clone, and the application wont run becoz many files cannot be found in the cloned project)\r\n4. Am i using github in the wrong way to keep my client yii2 application updated as i modified or added new file into the project.\r\n\r\nThanks in advanced for help."},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/69032915","html_url":"https://github.com/yiisoft/yii2/issues/3282#issuecomment-69032915","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/3282","id":69032915,"user":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T15:00:40Z","updated_at":"2015-01-07T15:00:40Z","body":"you can upload composer.phar to the server yourself, you may also commit composer.phar into the git repo. Make sure to call `composer install` there, **not** `composer update`! otherwise you will get different dependencies than you have locally."}}