p:: CLI

How to set a Dropbox file or folder to be ignored

xattr -w com.dropbox.ignored 1 <file/folder path>

Replace the file/folder path

xattr -w com.dropbox.ignored 1 .git

The icon beside your file or folder will change to a gray minus sign indicating that it has been ignored.