This is a repository for students in Spring 2022 DS 219
This only has to be run once, it's a global git setting that will apply to all of your local github repositories. In the below example, atom is set.
atom
is a common and easy-to-use editor, but you can set any editor you prefer.
git config --global core.editor "atom"
# fork first
git clone git@github.com:yourname/ds219sp2022.git
cd ds219sp2022
git remote add upstream git@github.com:sallyom/ds219sp2022.git
https://github.com/yourghusername/ds219sp2022
git@github.com:yourghusername/ds219sp2022
https://github.com/sallyom/ds219sp2022
git@github.com:sallyom/ds219sp2022
# this ensures your local working branch is current with latest upstream main branch
git checkout main
git fetch --all
git rebase upstream/main
git push origin main
git checkout -b my-new-branch
git checkout my-new-branch
git fetch --all
git rebase upstream/main
# Now your local working branch will have current main branch + any commits you've added
git push --force-with-lease origin my-new-branch