# Stages changes vs changes

**URL:** <https://forum.codewithmosh.com/t/stages-changes-vs-changes/24352>\
**Category:** HTML/CSS\
**Created:** [December 31, 2023, 4:24pm UTC](https://forum.codewithmosh.com/t/stages-changes-vs-changes/24352 "2023-12-31T16:24:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lizyada](https://avatars.discourse-cdn.com/v4/letter/l/aeb1de/32.png) [@Lizyada](https://forum.codewithmosh.com/u/Lizyada)\
**Post date:** [December 31, 2023, 4:24pm UTC](https://forum.codewithmosh.com/t/stages-changes-vs-changes/24352/1 "2023-12-31T16:24:12Z")

</div>

Hi guys, can someone please explain the difference between stages changes and changes in the source control panel after I click commit. It confuses me a lot and it’s just bugging my head.

When I make changes to my code and click on commit I just get confused. Will appreciate responses. Thanks

---

<div class="post-metadata">

**Author:** ![UniqueNospaceShort](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/uniquenospaceshort/32/1814_2.png) [@UniqueNospaceShort](https://forum.codewithmosh.com/u/UniqueNospaceShort)\
**Post date:** [January 1, 2024, 6:23pm UTC](https://forum.codewithmosh.com/t/stages-changes-vs-changes/24352/2 "2024-01-01T18:23:28Z")

</div>

Hi,

This is the wrong section. Not an HTML/CSS question but rather a GIT question.

In GIT you manage changes in the source code.

When you change anything in a source file, GIT will notice it and put it in the changes.

Now you can commit you code which is kind of like validating it in order to be kept. But you don’t need to validate all the files that has been changed. So you can decide which one to commit by first staging them.

Hence the difference between changes and staged changes.

Hope this helped.

Cheers.

---

<div class="post-metadata">

**Author:** ![shrikantkalar023](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/shrikantkalar023/32/6512_2.png) [@shrikantkalar023](https://forum.codewithmosh.com/u/shrikantkalar023)\
**Post date:** [January 1, 2024, 8:57pm UTC](https://forum.codewithmosh.com/t/stages-changes-vs-changes/24352/3 "2024-01-01T20:57:35Z")

</div>

Staged Changes means the changes that you have decided to commit… in the next commit.

You can stage changes by pressing the ‘+’ button on the right side of changes in the Git panel in VS code.

If you make more changes to files after staging them, then those are unstaged changes. YOu can restage them to commit or decide to commit them later.

---

<div class="post-metadata">

**Author:** ![JerryHobby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jerryhobby/32/5370_2.png) [@JerryHobby](https://forum.codewithmosh.com/u/JerryHobby)\
**Post date:** [January 1, 2024, 9:48pm UTC](https://forum.codewithmosh.com/t/stages-changes-vs-changes/24352/4 "2024-01-01T21:48:26Z")

</div>

One of Mosh’s courses covers GIT in detail. The challenge with git / github is that they use a lot of terminology that is unique and that makes it difficult to just “know” what means.

As a programmer, you really do need to know git and github. You can store your code there, roll back mistakes, merge with other developers, spin off branches, and a bunch more.

VSCode and most IDEs have git built in. They also give you the ability to upload your commits to [github.com](http://github.com). It’s good practice to use these tools. It also makes it easier to use your same code base on multiple computers, which is what I do.

Another nice thing on github is you can setup virtual machines and even do software testing right on their servers. Lots of cool things there.

---

<div class="post-metadata">

**Author:** ![Lizyada](https://avatars.discourse-cdn.com/v4/letter/l/aeb1de/32.png) [@Lizyada](https://forum.codewithmosh.com/u/Lizyada)\
**Post date:** [January 2, 2024, 5:42am UTC](https://forum.codewithmosh.com/t/stages-changes-vs-changes/24352/5 "2024-01-02T05:42:57Z")

</div>

Thank you so much for the response! & noted about the wrong section.

---

<div class="post-metadata">

**Author:** ![Lizyada](https://avatars.discourse-cdn.com/v4/letter/l/aeb1de/32.png) [@Lizyada](https://forum.codewithmosh.com/u/Lizyada)\
**Post date:** [January 2, 2024, 5:45am UTC](https://forum.codewithmosh.com/t/stages-changes-vs-changes/24352/6 "2024-01-02T05:45:59Z")

</div>

Thank you so much!! I really appreciate it.
