Bug - Adding files to Git is not obvious from the file menu

When I right-click on a file that is not in Git (my project is) I do not see a menu option that I can use to add the file to Git. The first level menu and the Git menu do not appear to have an appropriate item. Commit changes, says that there are no changes.

The Changes tab of the bottom window did allow me to add the file to vcs and it was successful.

Thanks,

Jacob

2 comments

Hello Jacob,

Provided that IDEA knows that the file is unversioned (the file name is colored

brown), the Git / Add Snapshot action allows you to add it to Git.

When I right-click on a file that is not in Git (my project is) I do

not see a menu option that I can use to add the file to Git. The first

level menu and the Git menu do not appear to have an appropriate item.

Commit changes, says that there are no changes.

The Changes tab of the bottom window did allow me to add the file to

vcs and it was successful.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Interesting. Not sure how I missed that. I would change the "Add Snapshot" button to "Add". Also, I noticed in the Changes view, right clicking on an unversioned file has a top level menu item called "Add to VCS". I would love to see that same menu item in the Project view for unversioned files.

Thanks!

Jacob

0

Please sign in to leave a comment.