Hello Niveditha,
Please check below.
Mendix Community - Question Details
Mendix Community - Question Details
Mendix Community - Question Details
Hi Niveditha,
This can be happened due to certain reasons. are you using CMD to commit the code or Studio pro?
lets assume you are using CMD the try to follow the steps.
1. git pull
2. git commit -m "msg"
3. git push origin <main>
To address the issue you're encountering, there are two potential solutions:
Option 1: Using the Command Line (Terminal or Git Bash)
Open your project folder in the terminal or Git Bash.
Run the following commands:
git fetch origin
— This will fetch the latest changes from the remote repository.
git merge origin/<your-branch-name>
— This will merge the remote changes into your current branch.
If there are any conflicts, resolve them manually.
After resolving the conflicts, stage the changes using:
git add .
Commit the changes with an appropriate message:
git commit -m "Your commit message"
Option 2: Using Git GUI
Open your Git GUI client.
Inspect the unversioned files and any potential conflicts.
Pull the latest changes to resolve any discrepancies.
Either of these methods should help resolve the error you're experiencing.
I hope this helps! Let me know if you need further clarification.