Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nitrous.io for Mac does not sync .git?

Tags:

nitrousio

I am trying out Nitrous.io -- it is a very nice tool. I am also using Nitrous' Mac application which syncs box content to a local directory -- except I have noticed that it doesn't sync the .git directory. I assume this is intentional(?). Is there a list someplace that describes what is and what is not synced?

like image 890
Erik Avatar asked Sep 16 '13 01:09

Erik


2 Answers

You can update the file <home dir>\Nitrous\<box name>\.unison\default.prf and add any configuration there per the manual: http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html

Mine contains this line, for example:

    ignore=Name node_modules

This way my node_modules folder is not synced in either direction.

You could add this line to yours:

    ignorenot=Name .git

As @ajhit406 noted though, you should handle your git actions in one place (the box, in this case).

like image 81
amsross Avatar answered Nov 14 '22 18:11

amsross


The .git directory is not synced on purpose. You should be SSH'ing into your box to manage your git repositories.

In the Mac application shortcut menu, hover over the box you want to SSH into, and click "Open Shell". You should enter any git commands from your box in the cloud.

like image 27
ajhit406 Avatar answered Nov 14 '22 18:11

ajhit406