Stephane Rolland
Stephane Rolland

Reputation: 39906

what is the git command so as to open a repository

I'm learning Git using Git Extension which provide graphical user interface.

But I have to do a command that I have not found in Git Extension. ( I want to do git checkout -- myFile so as to revert it).

So I was going to try with command line... However when i launch Git Bash, I cannot open the repository I am working on. I have not found any command that resemble to this ( git-open or something like that)

Any idea what I am missing ?

Upvotes: 6

Views: 32701

Answers (2)

James Black
James Black

Reputation: 41858

From GitExtension, open your repository, then you can open git bash and do what you want.

Or, start git bash, then cd to the directory where your code is (at the top level), but, I find it easier to just start with GitExtension so I don't have to think about what I had typed as the top of my src.

Upvotes: 2

Lars Nyström
Lars Nyström

Reputation: 6373

You do not need to "open" your repository, just cd to the directory.

Upvotes: 15

Related Questions