Add command in TortoiseGit

I'm just beginning to use TortoiseGit for Windows (I'm new to git) and I don't see the Add command in the context menu when I right-click on a directory or file. As I understand it, I should run this addcommand each time I want an update to a local file to be "staged". Here I don't see such a thing, the only "similar" thing I can do is run a commit instead, which is obviously not the right thing to do.

Besides, when I create a new file I also want to add it, but the context menu only proposes to "Add to ignore list".

Am I missing something here?

Upvotes: 2

Views: 5888

Answers (1)

Felix Bayer
Felix Bayer

Reputation: 372

You can add a file or folder to a git repository by right-clicking on it, then in "TortoiseGit"-submenu select "Add.." (should be the first menuitem, right above the "Add to ignore list"-submenu).

Anyway... another way of staging files or folders via TortoiseGit is to right-click the repository > TortoiseGit > Check for modifications > select the filed/folders you wish to stage from the list of not versioned files > right-click > add.

Upvotes: 3

Related Questions