How to see .gitignore file in directory?

73 views
Skip to first unread message

Jaimin Pandya

unread,
Mar 23, 2014, 5:04:05 AM3/23/14
to rubyonra...@googlegroups.com
I want open default " .gitignore " file in text editor But I can not
able to see it.

How can I see in directory?

Kind regards.

--
Posted via http://www.ruby-forum.com/.

Colin Law

unread,
Mar 23, 2014, 5:15:01 AM3/23/14
to rubyonra...@googlegroups.com
On 23 March 2014 09:04, Jaimin Pandya <li...@ruby-forum.com> wrote:
> I want open default " .gitignore " file in text editor But I can not
> able to see it.
>
> How can I see in directory?

That rather depends on which operating system you are using and which
editor. For example, on Ubuntu I can just use
gedit .gitignore

Not sure why you are asking this on a Ruby on Rails list as it seems
to have nothing to do with Ruby or Rails.

Colin

Jaimin Pandya

unread,
Mar 23, 2014, 5:25:24 AM3/23/14
to rubyonra...@googlegroups.com
Colin Law wrote in post #1140675:
It is right.

I have not asked question clearly, sorry for that.

When we run rails command, then rails command will create default
" .gitignore" file in application root directory. BUT I can't able to
see
" .gitignore " file in application root directory.

How can I see it?

Colin Law

unread,
Mar 23, 2014, 5:34:20 AM3/23/14
to rubyonra...@googlegroups.com
Still you have not told us the most important information, which
operating system are you using (Windows, Ubuntu etc)? You really
should be asking this on a Windows or other forum however. How to see
hidden files is nothing to do with Ruby on Rails. The fact that the
file was created by Rails is irrelevant.

You could try googling for
how to see hidden files in <insert your OS here>

Colin

Colin

>
> Kind regards.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d7dfec1edfdccf6663b9a7346dcce605%40ruby-forum.com.
> For more options, visit https://groups.google.com/d/optout.

Jaimin Pandya

unread,
Mar 23, 2014, 6:08:16 AM3/23/14
to rubyonra...@googlegroups.com
> Still you have not told us the most important information, which
> operating system are you using (Windows, Ubuntu etc)? You really
> should be asking this on a Windows or other forum however. How to see
> hidden files is nothing to do with Ruby on Rails. The fact that the
> file was created by Rails is irrelevant.
>
> You could try googling for
> how to see hidden files in <insert your OS here>
>

Sorry for asking this question in rails. I am using ubuntu operating
system.

Thank you very much for your help.

Colin Law

unread,
Mar 23, 2014, 6:11:52 AM3/23/14
to rubyonra...@googlegroups.com
In Nautilus (the file explorer) Ctrl+h will show/hide hidden files, or
you can show them via the menus in Nautilus.

Colin

Rick

unread,
Mar 23, 2014, 7:49:47 AM3/23/14
to rubyonra...@googlegroups.com
If you open a terminal window you can use the unix command ls -als to get a long listing of all files in the current directory. In the same terminal window the command man ls will give you the manual page for the ls command.

Robert Wolf

unread,
May 12, 2014, 2:00:52 AM5/12/14
to rubyonra...@googlegroups.com
Colin Law wrote in post #1140679:
CTRL + H worked!!! It gave me the easiest and best solution for this
tiny nasty long-time problem of mine. THANK YOU, COLIN! You're awesome!

Colin Law

unread,
May 12, 2014, 2:26:16 AM5/12/14
to rubyonra...@googlegroups.com
Glad to be of help.

Colin
Reply all
Reply to author
Forward
0 new messages