threads / discuss / 26310

Noob question regarding git push

Subject: Noob question regarding git push

## tl;dr

5 messages between Jan 19, 2011 and Jan 20, 2011.

replies: 4people: 4as markdown or json

Harry Johnson· Jan 19, 2011, 22:30 UTC · lore
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· Jan 19, 2011, 22:50 UTC · re: Harry Johnson · lore

Re: Noob question regarding git push

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
Harry Johnson· Jan 19, 2011, 23:10 UTC · re: Sverre Rabbelier · lore

Re: Noob question regarding git push

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:
Show 16 quoted lines
> 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· Jan 20, 2011, 02:35 UTC · re: Harry Johnson · lore

Re: Noob question regarding git push

On Thu, Jan 20, 2011 at 10:10 AM, Harry Johnson <hjohnson@viasic.com> wrote:
Show 6 quoted lines
> 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.
Junio C Hamano· Jan 19, 2011, 22:56 UTC · re: Harry Johnson · lore

Re: Noob question regarding git push

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

← back to recent threads