Skip to content

Commit fc76cd5

Browse files
seismanMeghan Jonesweiji14
authored
Update the contributing guide about pushing changes to dvc and git (#1776)
Co-authored-by: Meghan Jones <[email protected]> Co-authored-by: Wei Ji <[email protected]>
1 parent 95d03d3 commit fc76cd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,15 +630,15 @@ summarized as follows:
630630
mv baseline/*.png pygmt/tests/baseline/
631631

632632
# Generate hash for baseline image and stage the *.dvc file in git
633-
git rm -r --cached 'pygmt/tests/baseline/test_logo.png' # only run if migrating existing image from git to dvc
634633
dvc status # check which files need to be added to dvc
635634
dvc add pygmt/tests/baseline/test_logo.png
636635
git add pygmt/tests/baseline/test_logo.png.dvc
637636

638637
# Commit changes and push to both the git and dvc remotes
639638
git commit -m "Add test_logo.png into DVC"
639+
dvc status --remote upstream # Report which files will be pushed to the dvc remote
640+
dvc push # Run before git push to enable automated testing with the new images
640641
git push
641-
dvc push
642642

643643
#### Using check_figures_equal
644644

0 commit comments

Comments
 (0)