This is the repo for the CourseMatch
term project of our course.
Student
struct to carry all relevant informationstudent
's demand function: given prices, preferences and constraints, which is the optimal choice of coursesmaster
branch.So:
https://github.com/YOUR_GITHUB_USER/CourseMatch.jl.git
. Notice that you have to replace YOUR_GITHUB_USER
with your github username]
to activate your package manager. then:
# you typed ]
dev https://github.com/YOUR_GITHUB_USER/CourseMatch.jl.git
This will clone this repository to your computer at location ~/.julia/dev/CourseMatch
. Remember that your ~/.julia
can be seen by typing DEPOT_PATH[1]
into your REPL.
] # turn on Pkg mode
activate CourseMatch # activate pkg manager for this project
instantiate # download all required packages
precompile # precompile all
test # run the test suite of CourseMatch
activate # go back to main env (notice no arg given!)
Ctrl-c
. Let's see if the package also works in the main environment now.using CourseMatch
in the julia REPL (no longer in Pkg mode!)CourseMatch.VERSION
. you should see the current version.~/.julia/dev/CourseMatch
in your text editor / juno.Revise.jl
in your startup.jl
file as demonstrated, you can change the code in your editor, and your REPL will immediately reflect those changes (no manual reloading of the module needed!)~/.julia/dev/CourseMatch
folder. This is a live git repo.# you have made changes to the code in your text editor.
cd ~/.julia/dev/CourseMatch
git branch my_new_feature # create a new branch
git checkout my_new_feature # checkout this branch
git add . # this would add everything in current dir to your commit. alternatively give file names/paths
git commit -m 'I added a new feature' # commit to your branch
git push origin my_new_feature # push your work to your fork on github
https://github.com/YOUR_GITHUB_USER/CourseMatch.jl
and click on "new pull request" to create a new pull request (PR) on the origin repo. This PR will contain the changes from your branch my_new_feature
Master
?master
branch version on a repo we'll call upstream:
upstream
repo as a remote: git remote add upstream git@github.com:ScPo-CompEcon/CourseMatch.jl.git
rebase
command
git checkout master # make sure you are on your fork's master branch
git fetch upstream # get stuff from `upstream`
git rebase upstream/master # merge upstream master and put your local commits on top of it