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.
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.
Download the ICPSR deposit.
Navigate to the existing
aearep-xxxx
directory on you workspace.Within the directory on your workspace click into the ICPSR folder (i.e.
123456
).Move any important files (results, logs, etc.) from the first round to their own subfolder of the root directory.
Navigate back to the root directory (
aearep-xxxx
), right click and select “Git Bash Here” to open a bash shell.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.
Options 2: In the bash shell, type
rm -rf 123456/
In the bash shell, cd into the ICPSR folder,
cd 123456
(you may need to recreate it:mkdir 123456
)In the bash shell, unzip the download of the updated ICPSR deposit
unzip path/to/Downloads/123456.zip
.In the bash shell, type “
cd ..
” to move back to the root directory.In the bash shell, type “
git status
” to see what files are new, modified, or deleted.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 movedGit commit with the “-a” flag:
git commit -m "My great message" -a
. This will capture any previously manually deleted files.Now push the updated ICPSR folder.
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.