Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would git pull works if history was changed using git reset --hard? #20

Closed
tomekit opened this issue Mar 21, 2018 · 2 comments
Closed

Comments

@tomekit
Copy link

tomekit commented Mar 21, 2018

No description provided.

@vicenteguerra
Copy link
Owner

There should be no problem

@tomekit
Copy link
Author

tomekit commented Mar 28, 2018

I've tested it. git pull will merge with your local repository.
There is no guarantee that whatever you want to deploy will end up deployed correctly using git pull.
I think mix of fetch, checkout and hard reset is much safer option. Please find this: https://gist.githubusercontent.com/thomasfr/9691385/raw/1d92aea9b3e12548ffebcfde18fd6a7c5327a810/post-receive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants