# Git: Cannot convert undefined or null to object

**URL:** <https://forum.cursor.com/t/git-cannot-convert-undefined-or-null-to-object/69072>\
**Category:** Bug Reports\
**Created:** [March 24, 2025, 11:06am UTC](https://forum.cursor.com/t/git-cannot-convert-undefined-or-null-to-object/69072 "2025-03-24T11:06:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tandin](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@tandin](https://forum.cursor.com/u/tandin)\
**Post date:** [March 24, 2025, 11:06am UTC](https://forum.cursor.com/t/git-cannot-convert-undefined-or-null-to-object/69072/1 "2025-03-24T11:06:00Z")

</div>

Cant see version control working properly on cursor although git is initialized properly for that folder.

Can use git commands in the inbuilt terminal but UI shows this:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/8/d/8dedff14092b2bf978f3dbab46b7682c2f1642c9.png)

Works fine on other IDEs as well.

Retried reinstalling git extension, cursor itself and cloning the repo from scratch but still give the same issue.

Clicking on initialize repository shows this:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/a/2/a231ea0f11e3a5f0d51f0b9d7ab33f4f76709e08.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [April 23, 2025, 11:06am UTC](https://forum.cursor.com/t/git-cannot-convert-undefined-or-null-to-object/69072/2 "2025-04-23T11:06:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
