# Noob question regarding git push

5 messages from 2011-01-19 to 2011-01-20. Participants: Harry Johnson, Sverre Rabbelier, Junio C Hamano, Alex Budovski.
Thread: https://gitlist.dev/t/26310

## Harry Johnson, 2011-01-19 22:30

Subject: Noob question regarding git push
Message-ID: <AANLkTi=X8PURGSX5ODHpXACUWuA0oioTkeNEmRVnkx1D@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3DX8PURGSX5ODHpXACUWuA0oioTkeNEmRVnkx1D%40mail.gmail.com

```
Hi All,

So I have a central build repo from which we perform nightly builds.
Then my development repo is a clone of the build repo. The idea is
that after I am convinced that my changes in my development repo are
stable enough I push them to the build repo using git push.

This seems to work and I can see my changes when doing a git log from
the build repo. However, the actual working files have not been
updated nor can I figure out any way to get them updated. For instance
I have tried deleting one of the files that should be changed and then
doing a git checkout <file>. The changes are still not present. I have
tried doing a git reset --hard HEAD. The file still doesn't contain
the changes. I have even tried checking out a different branch in the
build repo and then re-checking out the master that should have those
changes. Still nothing.

What's the proper technique for making sure you see the actual changes
that were pushed to a repo?

This is debian lenny with git version 1.5.6.5.

TIA,
-Harry

```

## Sverre Rabbelier, 2011-01-19 22:50

Subject: Re: Noob question regarding git push
Message-ID: <AANLkTik5QOoWNjUP8LvRE=AmiAtmchc8NND9aKDe2svR@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTik5QOoWNjUP8LvRE%3DAmiAtmchc8NND9aKDe2svR%40mail.gmail.com
In-Reply-To: <AANLkTi=X8PURGSX5ODHpXACUWuA0oioTkeNEmRVnkx1D@mail.gmail.com>

```
Heya,

On Wed, Jan 19, 2011 at 23:30, Harry Johnson <hjohnson@viasic.com> wrote:
> What's the proper technique for making sure you see the actual changes
> that were pushed to a repo?

I think this is the FAQ you want:

https://git.wiki.kernel.org/index.php/GitFaq#Why_won.27t_I_see_changes_in_the_remote_repo_after_.22git_push.22.3F


-- 
Cheers,

Sverre Rabbelier

```

## Junio C Hamano, 2011-01-19 22:56

Subject: Re: Noob question regarding git push
Message-ID: <7vlj2gsdsm.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vlj2gsdsm.fsf%40alter.siamese.dyndns.org
In-Reply-To: <AANLkTi=X8PURGSX5ODHpXACUWuA0oioTkeNEmRVnkx1D@mail.gmail.com>

```
Harry Johnson <hjohnson@viasic.com> writes:

> This seems to work and I can see my changes when doing a git log from
> the build repo. However, the actual working files have not been
> updated nor can I figure out any way to get them updated.

This is a FAQ, isn't it?

https://git.wiki.kernel.org/index.php/GitFaq#Why_won.27t_I_see_changes_in_the_remote_repo_after_.22git_push.22.3F

```

## Harry Johnson, 2011-01-19 23:10

Subject: Re: Noob question regarding git push
Message-ID: <AANLkTins5KrYmy6gBJXphEMhcgCEDYcbEGpb7nyU-P=m@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTins5KrYmy6gBJXphEMhcgCEDYcbEGpb7nyU-P%3Dm%40mail.gmail.com
In-Reply-To: <AANLkTik5QOoWNjUP8LvRE=AmiAtmchc8NND9aKDe2svR@mail.gmail.com>

```
Thanks! It was in that faq. So it sounds like I just need to do a git
reset --hard before doing the builds... This shouldn't be a problem
since that working tree should never have any local changes. It is
just a snapshot to be used for builds. However, it does sound like
maybe I should look into a bare repo and then the build repo could
just be a clone of that.

Thanks again!
-Harry

On Wed, Jan 19, 2011 at 5:50 PM, Sverre Rabbelier <srabbelier@gmail.com> wrote:
> Heya,
>
> On Wed, Jan 19, 2011 at 23:30, Harry Johnson <hjohnson@viasic.com> wrote:
>> What's the proper technique for making sure you see the actual changes
>> that were pushed to a repo?
>
> I think this is the FAQ you want:
>
> https://git.wiki.kernel.org/index.php/GitFaq#Why_won.27t_I_see_changes_in_the_remote_repo_after_.22git_push.22.3F
>
>
> --
> Cheers,
>
> Sverre Rabbelier
>

```

## Alex Budovski, 2011-01-20 02:35

Subject: Re: Noob question regarding git push
Message-ID: <AANLkTimv8N7K2yvbgBnTzmTzaGtqf2tiS-Kk2-5Y__1M@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTimv8N7K2yvbgBnTzmTzaGtqf2tiS-Kk2-5Y__1M%40mail.gmail.com
In-Reply-To: <AANLkTins5KrYmy6gBJXphEMhcgCEDYcbEGpb7nyU-P=m@mail.gmail.com>

```
On Thu, Jan 20, 2011 at 10:10 AM, Harry Johnson <hjohnson@viasic.com> wrote:
> Thanks! It was in that faq. So it sounds like I just need to do a git
> reset --hard before doing the builds... This shouldn't be a problem
> since that working tree should never have any local changes. It is
> just a snapshot to be used for builds. However, it does sound like
> maybe I should look into a bare repo and then the build repo could
> just be a clone of that.

The central repo itself should be bare.

```
