From fe0105b17d0fc4c3a87f7669c973988020db9347 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Fri, 4 Mar 2022 17:15:30 +0800 Subject: [PATCH] Update the contributing guide about pushing changes to dvc and git (#1776) Co-authored-by: Meghan Jones Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com> --- doc/contributing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/contributing.md b/doc/contributing.md index 1b1f845958b..0332d923013 100644 --- a/doc/contributing.md +++ b/doc/contributing.md @@ -630,15 +630,15 @@ summarized as follows: mv baseline/*.png pygmt/tests/baseline/ # Generate hash for baseline image and stage the *.dvc file in git - git rm -r --cached 'pygmt/tests/baseline/test_logo.png' # only run if migrating existing image from git to dvc dvc status # check which files need to be added to dvc dvc add pygmt/tests/baseline/test_logo.png git add pygmt/tests/baseline/test_logo.png.dvc # Commit changes and push to both the git and dvc remotes git commit -m "Add test_logo.png into DVC" + dvc status --remote upstream # Report which files will be pushed to the dvc remote + dvc push # Run before git push to enable automated testing with the new images git push - dvc push #### Using check_figures_equal