Open a repository, not a file

To open an entire repository in Atom, rather than just a file, change to the correct directory then type atom . in the terminal.