# 11. Deploying the front end

**URL:** <https://forum.codewithmosh.com/t/11-deploying-the-front-end/4956>\
**Category:** React\
**Created:** [May 18, 2021, 2:56am UTC](https://forum.codewithmosh.com/t/11-deploying-the-front-end/4956 "2021-05-18T02:56:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunalP](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@kunalP](https://forum.codewithmosh.com/u/kunalP)\
**Post date:** [May 18, 2021, 2:56am UTC](https://forum.codewithmosh.com/t/11-deploying-the-front-end/4956/1 "2021-05-18T02:56:30Z")

</div>

Hi everyone,

during deploying the front end part, while pushing the code to the heroku master, I am getting the below error.  
anyone aware of this…

❯ git push heroku master  
error: src refspec master does not match any  
error: failed to push some refs to ‘[https://git.heroku.com/protected-ridge-50541.git](https://git.heroku.com/protected-ridge-50541.git)’

---

<div class="post-metadata">

**Author:** ![huislaw](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/huislaw/32/2278_2.png) [@huislaw](https://forum.codewithmosh.com/u/huislaw)\
**Post date:** [September 16, 2021, 1:45pm UTC](https://forum.codewithmosh.com/t/11-deploying-the-front-end/4956/2 "2021-09-16T13:45:18Z")

</div>

same issue here. did you find the solution?

---

<div class="post-metadata">

**Author:** ![huislaw](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/huislaw/32/2278_2.png) [@huislaw](https://forum.codewithmosh.com/u/huislaw)\
**Post date:** [September 16, 2021, 1:47pm UTC](https://forum.codewithmosh.com/t/11-deploying-the-front-end/4956/3 "2021-09-16T13:47:35Z")

</div>

can try git push heroku main, instead of master

---

<div class="post-metadata">

**Author:** ![MikiMe](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@MikiMe](https://forum.codewithmosh.com/u/MikiMe)\
**Post date:** [March 15, 2022, 11:54am UTC](https://forum.codewithmosh.com/t/11-deploying-the-front-end/4956/4 "2022-03-15T11:54:49Z")

</div>

running in to the same issue 😖 can you help ?

---

<div class="post-metadata">

**Author:** ![William](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@William](https://forum.codewithmosh.com/u/William)\
**Post date:** [March 26, 2022, 10:46am UTC](https://forum.codewithmosh.com/t/11-deploying-the-front-end/4956/5 "2022-03-26T10:46:01Z")

</div>

What’s the name of the branch in Git?

---

<div class="post-metadata">

**Author:** ![Momahad](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@Momahad](https://forum.codewithmosh.com/u/Momahad)\
**Post date:** [August 2, 2022, 10:19am UTC](https://forum.codewithmosh.com/t/11-deploying-the-front-end/4956/6 "2022-08-02T10:19:44Z")

</div>

Hello  
after git commit -m “Initial Commit”  
you need to set you identity (tell who are you)  
so run these to commands:

* * *

git config --global user.email “[you@example.com](mailto:you@example.com)”  
git config --global user.name “github\_username”

* * *

hope this be usefull 😊
