Search code examples
gitubuntucommand-linecloud9-ide

.gitignore file won't show in Cloud9 file panel


I am working on a ruby on rails application. I use the Cloud9 online IDE, which is Ubuntu.

When I go to the root directory, I can't open my .gitignore file. I know I'm in the right spot because when I'm in root and I type ls -la it lists all of my files, including .gitignore

I've seen other threads and some suggest using either open or see, followed by .gitignore. And they always work for OP. But neither of them work for me.

I tried this one:

open .gitignore`

But when I use that, I get the following error:

Couldn't get a file descriptor referring to the console

And when I use this command:

see .gitignore

I get the following error:

Warning: unknown mime-type for ".gitignore" -- using "application/octet-stream"
Error: no "view" mailcap rules found for type "application/octet-stream"

If anyone has any idea what's going on, please help me out. I can't find any other fix from other threads, other than using the two commands above.


Solution

  • Can you see it in the left hand side bar? If not, in the left hand side bar click the little cog icon and then click 'show hidden files'.
    Show Hidden Files

    Hope this helped.