Version Control for Economists
take logs of all coding activity of you and your collaborators
go back to a previous version of codes
focus on the change in the codes, and detect bugs
separate things complete and things under development
Version Control for Economists
take logs of all coding activity of you and your collaborators
go back to a previous version of codes
focus on the change in the codes, and detect bugs
separate things complete and things under development
git checkout main
git pull origin main
After checkout to new developing branch
git checkout -b "dev"
Write your codes
At a good saving point
git add foo1.txt foo2.txt
git commit -m "hogehoge"
If you want to stage all modified files, git add .
git push origin dev
A simple suggestion is "feature branch workflow"
git branch -d BRANCH_NAME
dvc add foo1.csv
You can specify a folder with -R option dvc add -R data
dvc push
dvc pull
You can see all the git command activity
git reflog
You can reset any git activity
git reset --soft COMMIT_ID_OR_REFLOG_ID
Conflict might occur
To solve this