# Fatal: 'resin' does not appear to be a git repository

**URL:** <https://forums.balena.io/t/fatal-resin-does-not-appear-to-be-a-git-repository/5465>\
**Category:** Product support\
**Created:** [February 26, 2019, 3:03pm UTC](https://forums.balena.io/t/fatal-resin-does-not-appear-to-be-a-git-repository/5465 "2019-02-26T15:03:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![safurniss](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@safurniss](https://forums.balena.io/u/safurniss)\
**Post date:** [February 26, 2019, 3:03pm UTC](https://forums.balena.io/t/fatal-resin-does-not-appear-to-be-a-git-repository/5465/1 "2019-02-26T15:03:25Z")

</div>

I’m trying to set up a new TTN Gateway running on a Raspberry Pi 3B+…

I already have it running on a Pi 2 and have created a application for the Pi 3.

The guide that I previously followed and am using for this build is this one [TTN Gateway](https://github.com/kersing/ttn-resin-gateway-rpi).

I can see my new Pi3 is online in balena, however when attempting to push to it I get the following error:-

> $ git push -f resin master  
> fatal: ‘resin’ does not appear to be a git repository  
> fatal: Could not read from remote repository.
> 
> Please make sure you have the correct access rights  
> and the repository exists.

I am using the same network connection that was previously used for testing in my Pi1 project so it should not be anything network related. I am on Virgin Media using OpenDNS, but this is also used on my other Pi 1 + 2 projects that work.

Any ideas of how to troubleshoot this issue is greatly welcomed.

Regards

Steve

---

<div class="post-metadata">

**Author:** ![dansku](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dansku/32/1183_2.png) [@dansku](https://forums.balena.io/u/dansku)\
**Post date:** [February 26, 2019, 3:13pm UTC](https://forums.balena.io/t/fatal-resin-does-not-appear-to-be-a-git-repository/5465/4 "2019-02-26T15:13:55Z")

</div>

Hello @safurniss,

Can you confirm that you are inside the folder containing the Dockerfile?  
If you go to the balena dashboard, you can update the git remote to balena instead or resin.

Example:  
`git remote add balena <user>@git.balena-cloud.com:<user>/<project>.git`

Then try:  
`git push balena master --force`

Let me know if this helps otherwise I will keep helping.

Cheers

---

<div class="post-metadata">

**Author:** ![safurniss](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@safurniss](https://forums.balena.io/u/safurniss)\
**Post date:** [February 26, 2019, 3:27pm UTC](https://forums.balena.io/t/fatal-resin-does-not-appear-to-be-a-git-repository/5465/6 "2019-02-26T15:27:44Z")

</div>

Fantastic… it worked… the guide that I was following was created when it was resin and hasn’t been updated for balena.

Thanks for your help

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [February 27, 2019, 9:10am UTC](https://forums.balena.io/t/fatal-resin-does-not-appear-to-be-a-git-repository/5465/8 "2019-02-27T09:10:02Z")

</div>

Hi there, Can you point the guide that you were following, it would be great to get that updated so others don’t hit the same issue.  
Thanks  
Shaun

---

<div class="post-metadata">

**Author:** ![safurniss](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@safurniss](https://forums.balena.io/u/safurniss)\
**Post date:** [February 27, 2019, 12:14pm UTC](https://forums.balena.io/t/fatal-resin-does-not-appear-to-be-a-git-repository/5465/10 "2019-02-27T12:14:37Z")

</div>

The guide is here [https://github.com/kersing/ttn-resin-gateway-rpi](https://github.com/kersing/ttn-resin-gateway-rpi).  
I contacted Jac Kersing who host this git project but it has been archived now so no changes can be made. He has pointed my to jpmiers on github who also was used for contributions.  
I will see if his has been updated to reflect the bales change.

---

<div class="post-metadata">

**Author:** ![safurniss](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@safurniss](https://forums.balena.io/u/safurniss)\
**Post date:** [February 27, 2019, 12:20pm UTC](https://forums.balena.io/t/fatal-resin-does-not-appear-to-be-a-git-repository/5465/11 "2019-02-27T12:20:54Z")

</div>

I’ve just checked the jpmiers guide here [https://github.com/jpmeijers/ttn-resin-gateway-rpi](https://github.com/jpmeijers/ttn-resin-gateway-rpi).  
This has been updated to reflect the changes.

---

<div class="post-metadata">

**Author:** ![hedss](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/hedss/32/210_2.png) [@hedss](https://forums.balena.io/u/hedss)\
**Post date:** [February 27, 2019, 12:33pm UTC](https://forums.balena.io/t/fatal-resin-does-not-appear-to-be-a-git-repository/5465/12 "2019-02-27T12:33:37Z")

</div>

Great, thanks for letting us know it’s been updated!
