Как добавить целую папку в Unversioned Files в Intellij Idea?
В качестве системы контроля версий используется Subversion. В окне Changes у меня есть три changelist‘а: Я хочу перенести файлы из папки Default в Unversioned Files. И я могу перетащить файлы мышкой, но как можно это сделать по-другому? Например, может быть, можно прописать в настройках, какие папки должны находиться в Unversioned Files? В File -> Settings -> Version Control -> Ignored Files 4 папки:
А в Unversioned Files только одна папка, production. Это тоже немного непонятно. Т.е., Ignored Files и Unversioned Files никак между собой не связаны?
Отслеживать
задан 1 сен 2016 в 9:23
10.7k 6 6 золотых знаков 47 47 серебряных знаков 98 98 бронзовых знаков
Для чего вы хотите перенести файлы? Ignore files — изменения этих файлов игнорируются свн, unversioned files — файлы которых нет в свн,
4 сен 2016 в 18:41
@a.chugunov, я хотела добавить её для игнорирования svn
Почему unversioned files?
Задача выгрузить проект в Битбакет.
Проект на локалхосте. Запускаю гит баш.
Пишу
git init
И вижу, что в PHP Storm в разделе гит комитов все файлы пометились как ‘unversioned’.
Закомитить ничего не могу. Новые файлы в гит добавляет. А старые пометил красным. Как добавить файлы в гит для выгрузки кроме тех, что прописаны в gitignore?
- Вопрос задан более года назад
- 485 просмотров
2 комментария
Простой 2 комментария
Add files to Git and track changes
If you have enabled Git integration for your project, IntelliJ IDEA suggests adding each newly created file under version control. You can change this behavior in the Settings dialog Control+Alt+S under Version Control | Confirmation . If you want certain files to always remain unversioned, you can configure Git to ignore them.
You can also add files to your local repository from the Project tool window. Select the files you want to add, and press Command Alt A or choose Git | Add from the context menu.
Check project files status
IntelliJ IDEA allows you to check the status of your local working copy compared to the repository version of the project. It lets you see which files have been modified, which new files have been added to Git, and which files are not being tracked by Git.
Open the Commit tool window Alt+0 .
- The Changes changelist shows all files that have been modified since you last synchronized with the remote repository (highlighted in blue), and all new files that have been added to Git, but have not been committed yet (highlighted in green).
- The Unversioned Files changelist shows all files that have been added to your project, but that are not being tracked by Git.
If you want ignored files to be also displayed in the Changes view, click on the toolbar and select Show Ignored Files .
Track changes to a file in the editor
You can also track changes to a file as you modify it in the editor. All changes are highlighted with change markers that appear in the gutter next to the modified lines and show the type of changes introduced since you last synchronized with the repository. When you commit changes to the repository, change markers disappear.
The changes you introduce to the text are color-coded:
- line added.
- line changed.
- line deleted.
You can customize the default colors for line statuses on the Editor | Color Scheme | VCS page of the IDE settings Control+Alt+S .
To disable VCS markers in the gutter, deselect the Highlight modified lines in gutter option on the Version Control | Confirmation page of the IDE settings Control+Alt+S .
You can manage changes using a toolbar that appears when you hover over a change marker and then click it. The toolbar is displayed together with a frame showing the previous contents of the modified line:
You can roll back changes by clicking and explore the differences between the current and the repository version of the current line by clicking . To highlight the fragments that were changed, click .
Instead of reverting the whole file, you can copy any part of the contents of this popup and paste it into the editor.
Delete files from the repository
If you delete a file that is under version control, it still exists in the repository until you’ve committed the changes. The deleted file is placed in the active changelist and is highlighted in grey.
- Select a file in the Project tool window and press Delete or choose Delete from the context menu.
- In the dialog that opens, you can choose whether you want to delete this file without searching for usages or to perform safe delete (to make sure that you are deleting an unused file) by checking the Safe delete option. If any usages have been found, the Usages Detected dialog will pop up listing them. You can view these usages and remove references to this file before deleting it.
- Commit the changes to the repository.
Saved searches
Use saved searches to filter your results more quickly
Cancel Create saved search
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can’t hide unversioned files #399
abd3lraouf opened this issue Jul 31, 2017 · 4 comments
Can’t hide unversioned files #399
abd3lraouf opened this issue Jul 31, 2017 · 4 comments
Comments
abd3lraouf commented Jul 31, 2017 •
edited by hsz
Got this exception and can’t hide ignored files from project
Error executing task mobi.hsz.idea.gitignore.outer.OuterIgnoreLoaderComponent$IgnoreEditorManagerListener$1@bcfce4d java.lang.UnsupportedOperationException at java.util.AbstractList.add(AbstractList.java:148) at java.util.AbstractList.add(AbstractList.java:108) at com.intellij.util.containers.ContainerUtil.addAllNotNull(ContainerUtil.java:741) at com.intellij.util.containers.ContainerUtil.addAllNotNull(ContainerUtil.java:731) at mobi.hsz.idea.gitignore.outer.OuterIgnoreLoaderComponent$IgnoreEditorManagerListener$1.run(OuterIgnoreLoaderComponent.java:127) at com.intellij.openapi.project.DumbServiceImpl.e(DumbServiceImpl.java:296) at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:86) at com.intellij.openapi.application.TransactionGuardImpl.b(TransactionGuardImpl.java:72) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:416) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762) at java.awt.EventQueue.access$500(EventQueue.java:98) at java.awt.EventQueue$3.run(EventQueue.java:715) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:732) at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:821) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:649) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
The text was updated successfully, but these errors were encountered: