# Pushing to github

**URL:** <https://forum.codewithmosh.com/t/pushing-to-github/10864>\
**Category:** Git\
**Created:** [February 22, 2022, 3:46am UTC](https://forum.codewithmosh.com/t/pushing-to-github/10864 "2022-02-22T03:46:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![eking2022](https://avatars.discourse-cdn.com/v4/letter/e/a87d85/32.png) [@eking2022](https://forum.codewithmosh.com/u/eking2022)\
**Post date:** [February 22, 2022, 3:46am UTC](https://forum.codewithmosh.com/t/pushing-to-github/10864/1 "2022-02-22T03:46:23Z")

</div>

Hello,  
lesson 43 of part3 HTML and CSS course  
I want to push to gihhub but the size of my project is large.  
 ![Screenshot 2022-02-22 071244](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/9/9f3369b3291bdabcbedc9cfb8bd9c382ba5819e2.png)  
what can I do?  
in this part I think Mr.hamedani didn’t have .git folder and …

---

<div class="post-metadata">

**Author:** ![eelsholz](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@eelsholz](https://forum.codewithmosh.com/u/eelsholz)\
**Post date:** [February 24, 2022, 1:18am UTC](https://forum.codewithmosh.com/t/pushing-to-github/10864/2 "2022-02-24T01:18:20Z")

</div>

The .git folder is your git repository. It’s normal for it to be large and this is what will be pushed to GitHub. Are you seeing an error when you try to push to GitHub?

---

<div class="post-metadata">

**Author:** ![eking2022](https://avatars.discourse-cdn.com/v4/letter/e/a87d85/32.png) [@eking2022](https://forum.codewithmosh.com/u/eking2022)\
**Post date:** [February 24, 2022, 7:14am UTC](https://forum.codewithmosh.com/t/pushing-to-github/10864/3 "2022-02-24T07:14:23Z")

</div>

yes , when i want to push , I got an error

---

<div class="post-metadata">

**Author:** ![eelsholz](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@eelsholz](https://forum.codewithmosh.com/u/eelsholz)\
**Post date:** [February 24, 2022, 11:32am UTC](https://forum.codewithmosh.com/t/pushing-to-github/10864/4 "2022-02-24T11:32:24Z")

</div>

What is the error you are seeing?

---

<div class="post-metadata">

**Author:** ![rahulrathore1986](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@rahulrathore1986](https://forum.codewithmosh.com/u/rahulrathore1986)\
**Post date:** [February 27, 2022, 10:42am UTC](https://forum.codewithmosh.com/t/pushing-to-github/10864/5 "2022-02-27T10:42:21Z")

</div>

Hi  
try not to push the node)modules folder to git repo as it contains very large files.  
just exclude below folders using .gitignore file like below

/dist

/tmp

/out-tsc

# Only exists if Bazel was run

/bazel-out

# dependencies

/node\_modules

Please let me know if still it is not working

---

<div class="post-metadata">

**Author:** ![eking2022](https://avatars.discourse-cdn.com/v4/letter/e/a87d85/32.png) [@eking2022](https://forum.codewithmosh.com/u/eking2022)\
**Post date:** [February 27, 2022, 1:14pm UTC](https://forum.codewithmosh.com/t/pushing-to-github/10864/6 "2022-02-27T13:14:03Z")

</div>

![Screenshot 2022-02-27 164257](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/42a3a373cb0293235997d19f3a5a6348efdd9185.png)

---

<div class="post-metadata">

**Author:** ![eelsholz](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@eelsholz](https://forum.codewithmosh.com/u/eelsholz)\
**Post date:** [February 27, 2022, 1:40pm UTC](https://forum.codewithmosh.com/t/pushing-to-github/10864/7 "2022-02-27T13:40:00Z")

</div>

What are the standard.psd and mobile.psd Photoshop files used for? Are they part of your project? Maybe you can exclude them from your git repository by adding the psd folder to your .gitignore.

---

<div class="post-metadata">

**Author:** ![eking2022](https://avatars.discourse-cdn.com/v4/letter/e/a87d85/32.png) [@eking2022](https://forum.codewithmosh.com/u/eking2022)\
**Post date:** [February 27, 2022, 1:47pm UTC](https://forum.codewithmosh.com/t/pushing-to-github/10864/8 "2022-02-27T13:47:03Z")

</div>

these are the mock-ups of the website, I think I committed them in git repository.  
how can I remove this folder?

---

<div class="post-metadata">

**Author:** ![eelsholz](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@eelsholz](https://forum.codewithmosh.com/u/eelsholz)\
**Post date:** [February 27, 2022, 2:24pm UTC](https://forum.codewithmosh.com/t/pushing-to-github/10864/9 "2022-02-27T14:24:45Z")

</div>

This might get complicated. Even after you have deleted the files or have added them to your .gitignore, they are still part of your git commit history. [This article has some ideas](https://medium.com/analytics-vidhya/tutorial-removing-large-files-from-git-78dbf4cf83a) on how to solve it. Or, if you don’t actually care about your git history, potentially you could wipe out your .git folder and start fresh with a new `git init` (just make sure that the psd files are either not in the directory or have been added to your .gitignore with a line like `**/psd`).

---

<div class="post-metadata">

**Author:** ![eking2022](https://avatars.discourse-cdn.com/v4/letter/e/a87d85/32.png) [@eking2022](https://forum.codewithmosh.com/u/eking2022)\
**Post date:** [February 27, 2022, 3:30pm UTC](https://forum.codewithmosh.com/t/pushing-to-github/10864/12 "2022-02-27T15:30:24Z")

</div>

I’m leaving it for now so that I might go to it later if I see the Git course or learned Git.  
I’m going to learn javascript now.  
Thank you, and Thank you for your response and time

---

<div class="post-metadata">

**Author:** ![eking2022](https://avatars.discourse-cdn.com/v4/letter/e/a87d85/32.png) [@eking2022](https://forum.codewithmosh.com/u/eking2022)\
**Post date:** [February 27, 2022, 3:31pm UTC](https://forum.codewithmosh.com/t/pushing-to-github/10864/13 "2022-02-27T15:31:40Z")

</div>

I’m leaving it for now so that I might go to it later if I see the Git course or learned Git.  
Thank you, Thank you for your response
