filmov
tv
How to fix error: Untracked Files Prevent Checkout in Android Studio/IntelliJ IDEA
Показать описание
When trying to checkout a git commit or a branch while a file which was previously tracked is changed and not tracked in the VCS anymore. This untracked files prevent commit error could occur.
Solution:
stash/shelve it if the change was unintentional and you don't want/care if the change makes it production code/remote code.
commit it if you want to have the changed content make it to production code/remote code.
In both cases, file will not be deleted but only the changes will be affected.
📚 Learn Android from Experts at:
😎 Find more Awesome Android Apps in Kotlin, MVVM, Jetpack:
📱 Follow us on:
⭐ Discord:
⭐ GitHub:
⭐ Twitter:
⭐ Instagram:
⭐ Medium:
Solution:
stash/shelve it if the change was unintentional and you don't want/care if the change makes it production code/remote code.
commit it if you want to have the changed content make it to production code/remote code.
In both cases, file will not be deleted but only the changes will be affected.
📚 Learn Android from Experts at:
😎 Find more Awesome Android Apps in Kotlin, MVVM, Jetpack:
📱 Follow us on:
⭐ Discord:
⭐ GitHub:
⭐ Twitter:
⭐ Instagram:
⭐ Medium: