(2016-01-27, 5:07 pm)fuaburisu Wrote: I'll get down to it eventually. Ideally I wanted to fork off the MyBB git repo, but it caused me issues with file permissions and some configuration files that shouldn't have been commited and difficult to undo from my own branches (with my average git knowledge anyway). See this thread.Sympathies on your git struggles -- it is not an easy version control system to learn. FWIW, some answers to some of your git questions from that thread:
Quote:This pulls the feature branch, for some reason I do not get the master as wellYou do get all the remote repo's branches; they are in 'remotes/origin/<branchname>'. In this case the remote repo has chosen to make their HEAD be the 'feature' branch rather than the usual master (and their master branch is their last stable release, not head-of-current-development), but it's still there:
Code:
$ git branch -a
* feature
remotes/origin/HEAD -> origin/feature
remotes/origin/feature
remotes/origin/masterQuote:git considers the file is staged, even though .gitignore is set to ignore itThis is as described in the gitignore manpage: files already tracked by git are not affected by .gitignore. It's there for you to list files that aren't tracked and which you'll never want to be tracked. The gitignore manpage also describes how to stop tracking a file that is currently tracked:
Code:
git rm --cached filenameMy guess (from absolutely no knowledge about myBB) as to why the upstream devs don't have this permissions-vs-git issue is that they probably work with a separate deployment/install phase, where they copy relevant things from their git tree to the server, rather than having the server directly run out of a git working tree. If you set things up like that then you can just not copy the git tree's settings.php when you deploy.
Edited: 2016-01-27, 6:57 pm
