E Updating Replication Materials after Revisions

While you move through the revision workflow, you will find instructions to download the updated ICPSR deposit and commit new files to the Bitbucket repository, while removing old files that are no longer present. This appendix will detail the most efficient way of executing this process.

  1. On the ICPSR deposit, navigate to “View Log” under “Share Project” and “Change Owner.” This log will tell you all the changes that have been made to the deposit and when. Verify that changes have been made to the deposit since the recent revisions were requested. If no changes have been made since the previous round, it may be a sign that the authors have created a new deposit instead of updating their existing deposit. If no changes have been made, contact a supervisor.

  2. Download the ICPSR deposit.

  3. Navigate to the existing aearep-xxxx directory on you workspace.

  4. Within the directory on your workspace click into the ICPSR folder (i.e. 123456).

  5. Move any important files (results, logs, etc.) from the first round to their own subfolder of the root directory.

  6. Navigate back to the root directory (aearep-xxxx), right click and select “Git Bash Here” to open a bash shell.

  7. Delete the files. It is extremely important that you do this manually and NOT through “git rm”

    • Option 1: Use the File Explorer (Windows) or Finder (macOS). Select everything and delete. shot1
    • Options 2: In the bash shell, type rm -rf 123456/
  8. In the bash shell, cd into the ICPSR folder, cd 123456 (you may need to recreate it: mkdir 123456) shot2

  9. In the bash shell, unzip the download of the updated ICPSR deposit unzip path/to/Downloads/123456.zip. shot3

  10. In the bash shell, type “cd ..” to move back to the root directory.

  11. In the bash shell, type “git status” to see what files are new, modified, or deleted.

  12. Git add everything in the ICPSR folder, e.g. git add 123456. This will add all new files, commit the deletion of any obsolete files, and record the changes in any files that were modified or moved

  13. Git commit with the “-a” flag: git commit -m "My great message" -a. This will capture any previously manually deleted files.

  14. Now push the updated ICPSR folder.

  15. In Bitbucket, you should be able to see the specific changes made to any files (with the same naming convention), that were modified.

TL;DR

rm -rf 123456
mkdir 123456
cd 123456
unzip ../123456.zip 
cd ..
git add 123456
git commit -m 'Updates by author' -a

Note: If the structure of the directory is different or files have been renamed, git will treat them as new files instead of allowing you to view specific modifications.