Marcin
Marcin

Reputation: 422

Changes in commit but not in source files

I have cloned git repository from another box. But when I have made changes, create commit locally and push them I do not see this changes in source files on source box. On this box I have pushed commit, but changes will be visible after git reset --hard HEAD.

I do not understand this behavior. How to fix it?

Upvotes: 0

Views: 40

Answers (1)

Mischa
Mischa

Reputation: 641

You can "fix" this intended behavior using one of Git's server-side hooks (e.g. post-receive) on the "source" that checks out the HEAD (using checkout, no need to reset) to the working tree.

Upvotes: 1

Related Questions