example below is for Jupyter Notebooks but it works for any type of file. Use "theirs" keyword instead of "ours" if you want to keep remote version of file on merge conflict
-
You must first navigate to the root directory of your local repo copy in your terminal
-
if
git remote -vdoesn’t show remotes with an addresshttps://github.com/ga-students/DS-BOS-19.git, run
git remote add dat-origin https://github.com/ga-students/DS-BOS-19.gitOtherwise, note the remote name that has the https://github.com/ga-students/DS-BOS-19.git address
- run the following to tell
git pull/git mergeto keep local versions of our lesson Jupyter Notebook files, even if they are out of sync with the copies kept in the main repo
echo 'lessons/**/*.ipynb merge=ours' > .git/info/attributesgit config merge.ours.driver true- You should be able to run
git pull <dat-origin / whatever your remote name was from step 2> masterand pull down changes from the master repo without getting merge conflicts