# \[Shell\] How does git work?

**URL:** <https://forum.codecrafters.io/t/shell-how-does-git-work/4321>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [January 19, 2025, 9:58am UTC](https://forum.codecrafters.io/t/shell-how-does-git-work/4321 "2025-01-19T09:58:16Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ada-Eva](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/ada-eva/32/4345_2.png) [@Ada-Eva](https://forum.codecrafters.io/u/Ada-Eva)\
**Post date:** [January 19, 2025, 9:58am UTC](https://forum.codecrafters.io/t/shell-how-does-git-work/4321/1 "2025-01-19T09:58:16Z")

</div>

Checklist:

1. ✅ : I’ve uncommented the code.
2. ✅ : I’ve saved the changes.
3. ✅ : I’ve run the git commands:

```auto
git commit -am "[seeking help on forum]"
git push origin master

```

* * *

Here’s a screenshot showing the output from running the Git commands:

[Attach screenshot here]

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/5/5ada9abda69b962a74002938491e8b7679314614.png)

[Share other details here]  
I made changes to the main.py but when i run it, it still outputting the previous output like nothing was change, i did get it to work by running it in debug mode but why, also when i try to commit and push it to origin master it says all changes are up to date but on the website it still says test failed and the log also is using the previous code like the changes i made didn’t made it through or something, sorry if the solution is obvious I’m still new.

---

<div class="post-metadata">

**Author:** ![i27ae15](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/i27ae15/32/3295_2.png) [@i27ae15](https://forum.codecrafters.io/u/i27ae15)\
**Post date:** [January 19, 2025, 12:16pm UTC](https://forum.codecrafters.io/t/shell-how-does-git-work/4321/2 "2025-01-19T12:16:37Z")

</div>

Hi, @Ada-Eva, what I can see from VsCode is that the file it not saved, can you try saving it (Control + S) and then running the code?

---

<div class="post-metadata">

**Author:** ![Ada-Eva](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/ada-eva/32/4345_2.png) [@Ada-Eva](https://forum.codecrafters.io/u/Ada-Eva)\
**Post date:** [January 19, 2025, 3:06pm UTC](https://forum.codecrafters.io/t/shell-how-does-git-work/4321/3 "2025-01-19T15:06:19Z")

</div>

Thank for your advice it did solve my first problem but i still can’t push the new version to origin master

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [January 19, 2025, 3:09pm UTC](https://forum.codecrafters.io/t/shell-how-does-git-work/4321/4 "2025-01-19T15:09:46Z")

</div>

Hi @Ada-Eva, what error messages are you seeing now? Feel free to share a screenshot.

---

<div class="post-metadata">

**Author:** ![Ada-Eva](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/ada-eva/32/4345_2.png) [@Ada-Eva](https://forum.codecrafters.io/u/Ada-Eva)\
**Post date:** [January 19, 2025, 3:35pm UTC](https://forum.codecrafters.io/t/shell-how-does-git-work/4321/7 "2025-01-19T15:35:20Z")

</div>

![Screenshot 2025-01-19 233341](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/b/ba87743547d787e350e1bd7d396725d03f84ffa4.png)

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [January 19, 2025, 3:43pm UTC](https://forum.codecrafters.io/t/shell-how-does-git-work/4321/8 "2025-01-19T15:43:49Z")

</div>

@Ada-Eva There’re two issues:

1. It seems that Git was run in the wrong folder.

Could you run this command and share the output:

```auto
git remote -v

```

1. It does not look like your code is correct yet. Let me know if you need help with it as well.

---

<div class="post-metadata">

**Author:** ![Ada-Eva](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/ada-eva/32/4345_2.png) [@Ada-Eva](https://forum.codecrafters.io/u/Ada-Eva)\
**Post date:** [January 19, 2025, 3:53pm UTC](https://forum.codecrafters.io/t/shell-how-does-git-work/4321/9 "2025-01-19T15:53:11Z")

</div>

still the same result unfortunately thanks for trying to help though

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [January 19, 2025, 3:55pm UTC](https://forum.codecrafters.io/t/shell-how-does-git-work/4321/10 "2025-01-19T15:55:27Z")

</div>

@Ada-Eva Don’t give up yet. You can do it!

What does `git remote -v` say?

---

<div class="post-metadata">

**Author:** ![Ada-Eva](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/ada-eva/32/4345_2.png) [@Ada-Eva](https://forum.codecrafters.io/u/Ada-Eva)\
**Post date:** [January 19, 2025, 3:57pm UTC](https://forum.codecrafters.io/t/shell-how-does-git-work/4321/11 "2025-01-19T15:57:59Z")

</div>

what? is it suppose to say something back? it didn’t return me anything

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [January 19, 2025, 4:03pm UTC](https://forum.codecrafters.io/t/shell-how-does-git-work/4321/12 "2025-01-19T16:03:07Z")

</div>

@Ada-Eva Yep, it’s supposed to look something like this:

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/3/31633a0db5832ec5cef0445b6132dc0a5321be8f.png)

Now run `cd codecrafters-shell-python` and try again.

* * *

Note that you need to be in `codecrafters-shell-python` otherwise it wont work.

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/5/5d26908fde5eb403e19794180db686264632e546.png)

Once you’re in the right folder, this part should reflect the change:

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/0/02e93995458a70d60f157772a28ac3cfa6ff57b6.jpeg)

---

<div class="post-metadata">

**Author:** ![Ada-Eva](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/ada-eva/32/4345_2.png) [@Ada-Eva](https://forum.codecrafters.io/u/Ada-Eva)\
**Post date:** [January 19, 2025, 4:17pm UTC](https://forum.codecrafters.io/t/shell-how-does-git-work/4321/13 "2025-01-19T16:17:51Z")

</div>

> [@andy1li](#):
>
> cd codecrafters-shell-python

Absolutely beautiful, thanks for your time and patience

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [January 24, 2025, 4:18pm UTC](https://forum.codecrafters.io/t/shell-how-does-git-work/4321/14 "2025-01-24T16:18:01Z")

</div>

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