Git is a distributed version control system focused on speed, and real-world usability on large projects.

learn more… | top users | synonyms

1
vote
1answer
23 views

Does storing my database as a .sql file in my site git repository cause problems?

I have been saving a series of database export files each time I do a git commit of my Drupal site. I have a nice git repository for my site files and a messy folder for my database backups. Because ...
1
vote
1answer
26 views

Run “git” on remote server with drush alias

I would like to launch git commands, on my production server, from my pc. The document root of the production application is a clone of the git repository. On prod, on sites/all/drush/drushrc.php ...
2
votes
2answers
52 views

How do I preserve custom files in my Drupal configuration across minor core upgrades?

When I do a minor upgrade of the core, my custom .htaccess and robots.txt are overwritten. How do I prevent that?
-1
votes
1answer
54 views

Did you run git update-server-info on the server? [closed]

I am trying to build module for GIt When I am cloning git clone http://git.drupal.org:sandbox/TanvirAhmad/2204859.git limit_publishing_options I see.. Cloning into 'limit_publishing_options'... ...
0
votes
1answer
26 views

Is there a way to iterate on all Drupal modules on d.o?

I'd like to iterate on all contrib modules, pull their repos and extract information (such as drush commands, graph dependencies, etc.) Is there a way to list all modules, other than scraping ...
0
votes
1answer
16 views

Getting Files to show up on new submitted Module page

I have a module that is ready for public use, and I have created a Drupal Account and created a development sandbox, and even uploaded the files via git. Now, I am very much a newb regarding git, so ...
3
votes
1answer
32 views

How to deploy translations in code?

As the title states, I want to export the translations in code and deploy it with a version control system like GIT. We have a multi-language Drupal system (English and German) and we have ...
0
votes
0answers
48 views

Clone Private Git Repo via Drush Make file fails using ssh authentication

I have multiple private git accounts set up with ssh system's keychain authentication for each git repo It works to clone private git repos from command line: git clone ...
1
vote
0answers
69 views

How to keep your Drupal 8 site synced with 8.x branch

Is it practical to both A) develop/maintain a Drupal 8 alpha site and B) keep it up to date with the latest daily/hourly commits from the 8.x branch ? If so, what would be your strategy to keep your ...
0
votes
1answer
54 views

What is the Aegir make_working_copy SCM option mean?

If one creates a platform and chooses to preserve the working copy, does this initiate a .git clone that the aegir user from CLI, could update and merge branches to? Create a new platform: ...
4
votes
2answers
131 views

How do you include a Dev module in a make file?

I am using Drush make files to automate my site development. I have followed this tutorial to create a Make File via Drush. Everything works fine, except when I run the make file, Drush says it ...
2
votes
0answers
42 views

How to import git commit from development to testing in Aegir

So, I have established Aegir to take care of my sites workflow. Now I made changes to my development site, used git to load the commit to development site. How do I import the latest commits to ...
0
votes
1answer
38 views

Update Drupal core via Pantheon

I push all my local changes to the Pantheon git repository, then I update core via the pantheon dashboard. Now I pull from the Pantheon repository with "git pull ...
1
vote
1answer
23 views

Is it possible to put existing/shared Content type fields as Feature code each in their own individual file to simplify/avoid git merge conflicts?

We have a set of content types that share common fields - in that we re-use them in several content types. When recreating these content types as a Feature, the fields are all in one large file. This ...
1
vote
1answer
41 views

Is there a recognized practice for keeping security details in files excluded from version control?

As settings.php also contains the database connection details and the site key among others, it is excluded from version control in .gitignore. But there some modules, APC for instance that require ...
0
votes
1answer
41 views

Smart way to compare drupal instance files with official release to search for modified files

I was asked to update (just install new core and modules versions) a Drupal site that uses roughly 100 (yes: hundred) contributed modules. I suspect that some of these modules might have been ...
2
votes
5answers
2k views

Is Git now the only way to install Drush?

Going in circles trying to figure out the right way to install Drush on a Linux CentOS system. I have Git set up, but as I'm not planning to contribute to Drush code at the moment, it's not ...
0
votes
1answer
60 views

Git showing every changed file not folders [closed]

Git is showing every change in every installed module folder. This makes it unusable because I can't see what I'm committing. Previously git only showed the module folders. So if i installed Views, ...
0
votes
1answer
69 views

drush make on local gitweb raw url

I moved a git repo from github to local gitweb and want to access the raw build make file ...
0
votes
1answer
27 views

Writing a patch on a sandbox/dev install using a git branch

I'm working with a Sandbox/Dev hosted VM with Drupal 7 and Commons 3. I want to write and perhaps contribute a patch. Having the site under local version control with git, I create a new branch write ...
0
votes
1answer
55 views

How to add user upload files to git when the node is pulished?

my requirements is: some users are adding application file drupal system adding node. initially that node is in unpublished state. Once the admin is publishing the node that uploaded file need to be ...
0
votes
1answer
233 views

In Drupal 7, how do you git clone a module project quickly?

There doesnt seem to be any good documentation on a quick way to git clone a module project. I have already read this: https://drupal.org/project/examples/git-instructions The following format does ...
1
vote
1answer
63 views

How exactly do I package latest dev snapshot of Commons locally?

I am trying to build up-to-date instance of Drupal Commons 7.x-3.x-dev. Release notes say to use command: "drush make build-commons-dev.make". I am totally new to drush and am trying to follow that ...
2
votes
6answers
383 views

How to handle enabling new modules with Drush via makefile

At work we are moving to getting our new sites set up in git and doing local development. So far I've created a drush make file along with an installation profile, and I have this scripted via puppet ...
2
votes
1answer
86 views

Usernames in git commit messages on Drupal.org

I recently changed my username on drupal.org, and as a result is now different from my git username. When you attribute a patch someone else using the commit author, you use the anonymous email ...
1
vote
1answer
295 views

Understanding database structure for auto-migration

I am trying to come up with a good way to get this handed down Drupal project to work as smooth as possible. Ideally, my goal is to do changes local, and when that looks okay, I should be able to git ...
8
votes
3answers
203 views

How do I get a block and its content commited to a Git repo?

Let's say I have created a block with some Full HTML (Facebook Feed) text inside. How can I commit the block and its text content into my Git repository, so my co-workers can pull it?
3
votes
1answer
64 views

Add tags to my sandbox module

Currently i am working on a sandbox module, which is text_or_user_reference field. Now to release the module i have to create a branch of the module i.e 7.x-1.0 Since beginning of the module ...
-1
votes
2answers
299 views

clone of drupal project failing: operation timed out

I am trying to clone the drupal project locally but getting this error k10593:htdocs welcha$ git clone git://drupalcode.org/project/drupal.git fooproject Cloning into 'fooproject'... fatal: unable ...
2
votes
0answers
236 views

D7 configuration module gitignore sites/default/files/config

I'm checking out the new configuration management module for Drupal 7. It's effectively a back-port of the new configuration management that's in D8, and looks like it's going to be a great ...
5
votes
1answer
118 views

Do I need all drupal core history in my own repository

I decided to update core via git, mostly by following the approach explained here. I did this (in my local repo, dev branch): git remote add core git://drupalcode.org/project/drupal.git git fetch ...
3
votes
1answer
288 views

git post-receive hook to trigger drush rsync without prompt or with predefined answer

I have set up post-receive hook on my staging server, so whenever I push from dev server a master branch, it updates staging webroot and triggers drush rsync to update live site. #!/bin/bash ...
0
votes
1answer
207 views

Git workflow from dev to live when central repo is in local network [closed]

I use @dev - @stage - @live workflow, managed with drush rsync and drush aliases to update code, syncing db down from @live to @dev / @stage to have recent state. Recently, I am trying to implement ...
0
votes
2answers
234 views

Drush features commands + git

I have a doubt about the functionality of Drush Features commands when it works with git: Before I do a git pull, can I do drush fu example? Will this command overwrite the changes of the feature ...
1
vote
1answer
100 views

Commit doesn't show up in profile on Drupal site

I submitted my first, (and very small patch) here, by following the instructions here. It looks like the patch worked, but when I look at the Commits tab of my profile, I don't see any entries. When ...
7
votes
1answer
677 views

How do I do git clone with drush to download the HEAD version of a module?

Is there any way to clone or pull the HEAD version of a module in drupal.org git repository? For example, if I'm on Drupal 7, and the last branch of Views is 3, I would like to do: drush git-clone ...
0
votes
2answers
188 views

Could anyone suggest a Drupal database versionning tool? [duplicate]

Possible Duplicate: How do I manage collaborative development on a Drupal site? Is there any Drupal database version like GIT for versionning files ? with drush or any thing else ? I've ...
5
votes
1answer
309 views

How to download the projects within a distribution using git, not just the distribution itself?

I've set $options['package-handler'] = 'git_drupalorg'; set in my .drushrc.php file. Now when I run drush make for a distribution (in this case, the 7.x-3.x-dev release of Commons), the distribution ...
1
vote
1answer
266 views

What is the best-practice for managing Aegir sites in Git? [closed]

I know there is a million ways this could be done, I'm more looking for the "best-practice" of how this "should" be done. I have an Aegir setup with 4 different Drupal platforms. Within each platform ...
3
votes
1answer
85 views

Manage node body in git

For a new blog, I like to have the post text stored as markdown (or an other suitable format) on github. But I want to have all the nice features of drupal (comments, nodes, captcha, menu syste, ...
3
votes
2answers
310 views

How to structure git repositories for project?

I'm working on a content synchronisation module for Drupal. There is a server module, which sits on ona website and exposes content via a web service. There is a also a client module, which sits on ...
1
vote
0answers
200 views

Drush, post receive hooks and git branches/tags

I am stuck with a nagging issue in our deployment systems drush version 5.7 git version 1.7.7 Drupal 7.x We currently have a bare git repository (consisting of drush makefiles) on the production ...
2
votes
1answer
151 views

When is using --package-handler=git_drupalorg appropriate with drush?

In which situations are using drush pm-downlaod --package-handler=git_drupalorg ... appropriate? For example, if I am developing a normal site and want to version it with git, I assume it just ...
4
votes
1answer
160 views

Download entire drupal contrib repository

I would love to download (or, preferably, clone via git) the entire drupal contrib repository (6 for now, but 7 also). That way I can do cool stuff like search the repository via grep for hooks, ...
2
votes
1answer
160 views

Server side Drupal install as git local repo

I have a Drupal install on a shared server and would like to do some version control on it, namely git. I'm a beginner at Drupal and only just starting with git so I've become a bit overwhelmed with ...
7
votes
2answers
925 views

What is the best practice to upgrade drupal core without breaking the GIT repo and the production website

I've got a Git repository in which all my code is in the master branch, and I was previously just ignoring all the Drupal files, so that I kept a strict separation between code that I wrote (or ...
3
votes
3answers
1k views

Update module with Drush + commit with Git

What's the best way to update a module and commit with git? Currently I'd use drush pm-updatecode then inspect with git status. The problem then is there are many files that have changed, been added ...
0
votes
2answers
123 views

how to create a branch in git [closed]

created a sandbox project and created a 6.x-1.x. http://drupalcode.org/sandbox/serjas/1713192.git now ported module to 7, but dont know how to create a branch followed instruction here ...
1
vote
1answer
299 views

Updating custom modules

I have a module I wrote that is used on a production site. I had to make some changes and need to update the module. Where do I begin to learn to do this?
-1
votes
1answer
529 views

Using git over ssh from localhost to my Shared Hosting [closed]

I managed to install smoothly git and drush on my Shared Hosting. Cool. Now I created there a git repository: $cd public_html/drupal $drush dl drupal $git init $git add . $git commit -a -m "My ...