question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

more git hooks (dvc pull/push/status)

See original GitHub issue

can we add more git hooks for dvc pull/push/status when git pull/push/status are run? ideally, most git commands would have a hook. this will make it much less likely for someone to forget to dvc push after running a pipeline

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:9
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

11reactions
amin-nejadcommented, Jan 8, 2021

+1 for adding a git pull hook. (Just commenting to show there’s still interest in this)

5reactions
AlJohricommented, Aug 25, 2019

I’m still interested in adding a git pull hook.

But that one is going to be called not only on git pull but also on regular amend and rebase. Not sure if it is something we actually want. What do you think?

I must agree thats a bit of a bummer. We could solve amend vs rebase problem by reading flag passed by git, but problem “Was it pull or rebase” will remain unsolved. Both hooks (post-rewrite, post-merge) contain functionality that we need, but those details make them hard to use in our case.

It seems like we can at least just implement it for the post-merge hook? For post-rewrite, I understand we can’t easily identify between actual rebase vs pull --rebase but this only affects users who are running git pull --rebase, right?

I think the majority of users just use git pull without --rebase so can we can have it automatically dvc pull for at least these users?

Read more comments on GitHub >

github_iconTop Results From Across the Web

install | Data Version Control - DVC
For more information about git hooks, refer to the git-scm documentation. Disable Git hooks. When you use dvc install , it creates three...
Read more >
git - "dvc push" after several local commits - Stack Overflow
Is there a way to disable hooks after dvc install command? When you run dvc install , it creates three files under the...
Read more >
Git Hooks - Git SCM
In most projects, that's .git/hooks . When you initialize a new repository with git init , Git populates the hooks directory with a...
Read more >
DVC - Data Versioning - Laziness makes Great Engineer
Read DVC - Versioning Data and Models for more use cases ... You can install these git-hooks through dvc install . These hooks...
Read more >
How to make a git hook for dvc? - Reddit
I'm running my git notebook through google colab but everysingle time I open my notebook in colab, I have to run: !pip install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found