git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Noob question regarding git push
@ 2011-01-19 22:30 Harry Johnson
  2011-01-19 22:50 ` Sverre Rabbelier
  2011-01-19 22:56 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Harry Johnson @ 2011-01-19 22:30 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Noob question regarding git push
  2011-01-19 22:30 Noob question regarding git push Harry Johnson
@ 2011-01-19 22:50 ` Sverre Rabbelier
  2011-01-19 23:10   ` Harry Johnson
  2011-01-19 22:56 ` Junio C Hamano
  1 sibling, 1 reply; 5+ messages in thread
From: Sverre Rabbelier @ 2011-01-19 22:50 UTC (permalink / raw)
  To: Harry Johnson; +Cc: git

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Noob question regarding git push
  2011-01-19 22:30 Noob question regarding git push Harry Johnson
  2011-01-19 22:50 ` Sverre Rabbelier
@ 2011-01-19 22:56 ` Junio C Hamano
  1 sibling, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2011-01-19 22:56 UTC (permalink / raw)
  To: Harry Johnson; +Cc: git

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Noob question regarding git push
  2011-01-19 22:50 ` Sverre Rabbelier
@ 2011-01-19 23:10   ` Harry Johnson
  2011-01-20  2:35     ` Alex Budovski
  0 siblings, 1 reply; 5+ messages in thread
From: Harry Johnson @ 2011-01-19 23:10 UTC (permalink / raw)
  To: Sverre Rabbelier; +Cc: git

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
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Noob question regarding git push
  2011-01-19 23:10   ` Harry Johnson
@ 2011-01-20  2:35     ` Alex Budovski
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Budovski @ 2011-01-20  2:35 UTC (permalink / raw)
  To: Harry Johnson; +Cc: Sverre Rabbelier, git

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-20  2:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-19 22:30 Noob question regarding git push Harry Johnson
2011-01-19 22:50 ` Sverre Rabbelier
2011-01-19 23:10   ` Harry Johnson
2011-01-20  2:35     ` Alex Budovski
2011-01-19 22:56 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).