1 -
Git Branching Strategy for Neutrinos Studio Projects
Neutrinos Studio does not provide a built-in branching strategy like Git. However, it integrates seamlessly with Git, and it’s highly recommended to manage your Neutrinos projects using version control systems such as Git for better collaboration, versioning, and backup.
Why Use Git with Neutrinos?
A Neutrinos project is structured like a standard Node.js application—meaning it consists of component files, services, routing configurations, etc. These files are fully compatible with Git workflows, allowing developers to:
- Track changes
- Roll back broken updates
- Collaborate with teams
- Review and merge code safely
- Transfer or back up work across systems
Recommended Git Workflows
1. Feature Branch Workflow (Good for individuals or small teams)
- Create a new branch for each task or feature.
- Keeps the
main or develop branch clean and production-ready.
Example:
git checkout -b feature/add-login
# Make your changes
git commit -am "Add login functionality"
git push origin feature/add-login
2. Gitflow Workflow (Ideal for structured teams)
- A branching model with defined roles:
main: Stable, production-ready code
develop: Integration branch for features
feature/*, release/*, hotfix/*: Task-specific branches
Example:
git checkout -b feature/integrate-api develop
# Develop the feature
git checkout develop
git merge feature/integrate-api
Handling Merge Conflicts (Important!)
Merge conflicts can happen, especially when multiple developers are working on the same files (like components or layout files).
Scenario:
- Developer A modifies
home-layout.component.html
- Developer B makes conflicting changes in another branch
Conflict markers example:
html
<<<<<<< HEAD
<div class="home-section">Welcome to our portal</div>
=======
<div class="home-section">Welcome to the updated dashboard</div>
>>>>>>> feature/update-dashboard
You’ll need to manually resolve the conflict and test the result.
Tips:
- Communicate frequently with teammates
- Pull from
develop or main regularly
- Resolve conflicts with caution to avoid losing work
Git and Neutrinos File Structure
Neutrinos projects consist of real files and folders like:
src/app/components/
src/app/services/
config/
These can easily be committed, pushed, or cloned with Git. Just be sure to exclude environment-specific directories using a .gitignore file.
Suggested .gitignore:
node_modules/
.dist/
.angular/
logs/
2-
Task Transfer & Backup Strategies for Neutrinos Studio
Here are two reliable methods to back up or transfer your projects safely across systems:
A. Git-Based Backup (Recommended)
Using Git is the most efficient and scalable way to manage your Neutrinos projects. It enables:
- Seamless migration across systems
- Protection against data loss
- Collaboration across teams
Steps:
- Initialize a Git repo in your project folder:
git init
- Add your remote repository (GitHub, GitLab, Bitbucket, etc.):
git remote add origin <your-repo-url>
- Stage and commit your changes:
git add .
git commit -m "Initial commit"
- Push to your repository:
git push -u origin main
- On another system, simply clone the project:
git clone <your-repo-url>
B. Manual Backup Using .nosbackup File
If you prefer manual methods or Git isn’t an option, you can use Neutrinos’ native backup feature:
Steps to Back Up:
- Export the
.nosbackup file (if your Studio version supports it – this file contains project metadata and layout).
- Save the entire project folder, including:
.angular
.metadata
src/, components/, etc.
- Zip the folder and copy it to the destination machine.
Steps to Restore:
- Extract and open the folder in Neutrinos Studio on the new system.
- Install dependencies (if required):
npm install
3. Crash Logs and Diagnostics
When Neutrinos Studio crashes, it stores helpful diagnostic logs locally.
Where to Find Logs:
- Windows:
C:\Users\<YourUsername>\.neutrinos\logs
- macOS/Linux:
~/.neutrinos/logs
Typical Files:
studio.log
error.log
electron-crash-report.log
These logs often include:
- Stack traces
- Missing dependency warnings
- Electron-specific errors
- Plugin/component failures