So I am trying and failing to add problems using this github system
I created a fork at https://github.com/jlouisewilson/webwork-open-problem-library. Made a clone onto my own machine. I put a folder in to "contrib" on my own machine. I added in my files ( which I have changed to make sure they point to things already in your list, so middle school and geometry_figures)
Now here's where it breaks down. I can do sync. i can do push. I have no idea what these mean, I think it is supposed to make the remote fork be the same as my local repository. But instead it created another repository called "louise" I have no idea how to get the folder and files into where they are supposed to be under "contrib", nor how to make them wave their hands to say "hey guys, please check out these files and put them in the library." I spent 10 hours on this yesterday, I have emailed to the Github people. Nobody seems to understand my question or my problem.
Please, I beg you, can anyone explain to me in simple words ( because I am a bear of very little brain) how to do this? I attach the .doc with my screenshots, in case that helps. well, if it's small enough I do.
I am really sorry for thrashing around like a wild beast on the gitplace, I have no idea what I have done.
- you created a fork of the opl (which is what you wanted)
- in that, you made a branch called louise (not necessary, and part of what is going to confuse matters)
- when you pushed, you ended up creating a new github repository called louise
- Go to a new directory on your server (say "mkdir /opt/opl/fixup", change permissions first if need be or use a different path).
- cd /opt/opl/fixup
- git clone email@example.com:jlouisewilson/webwork-open-problem-library.git
- cd webwork-open-problem-library/Contrib
- if needed, mkdir louise (or better, use your institution as the name of the directory such as mkdir GRPS)
- cp -R /path/to/old/directory/* GRPS
- ls GRPS (to check that things ended up they way you want them, adjust if needed)
- git add GRPS (it should add the current directory and everything in subdirectories)
- git commit (you need to write a commit message)
- git push
I used the gitbash window to git clone http://github.com/jlouisewilson/webwork-open-problem-library.git
I did cd webwork-open-problem-library/Contrib
I did mkdir GRPS
I could not do cp-R because it did not like the ~ or the /to lead the path, and I did not know what protocol to start with. I copied the files into the folder using the windows file thing ( I'm sure it ahs a name) copy and paste.
Is GRPS did nothing for me. I went to github and saw that the files were there.
I did git add GRPS I don't know what that did
I did commit using github. I don't know what that did.
I did push using github.
That gave me error: failed to push some references
Updates were rejected because he remote contains work that you do not have locally. This is usually cause by another repository pushing to the same ref. You may want to first integrate the remote changes ( e.g. git pull...) before pushing again.
I did try making another directory yesterday, and ended up in this same place (now I have 3 copies of the library on my hard drive, I am hoping to dispense with 2 of them...)
So I am stuck, because I don't know how to get the work to push up to the remote site...
But am so grateful that you sent me something!!
Anyway i hope I have quick generated a pull request before everything disappears (oh, magic).
I have to have a rest before I try and put up the rest of the problems.
15 hours. I am waaay too old for this.
I think this thread is the closest to the problem I am having that I can find. I am also trying to add a library of problems that a colleague and I have created and have been using locally by just copying them from one course to another. It is time to officially upload them and try to create a Contrib folder, and eventually submit some of them for inclusion in the OPL.
I am trying to following the instructions here: https://webwork.maa.org/wiki/Submitting_problems_to_the_OPL
I have forked the OPL, but I get stuck at the very next step. I am trying to use Gitbash to clone the copy on my desktop computer. However, after running the commands listed, I check the directory that has been created and it is empty (other than some hidden files that do not include a Contrib folder). This means I have no way to do the next step in the process to add and edit my problems in the Contrib subdirectory.
I did manage to clone a copy onto my desktop using Github desktop, but then I could not figure out how to go any further because the rest of the instructions use command line instructions. When I tried to continue with the next step (git push) using the copy cloned using github desktop, Gitbash told me that the process failed.
I should mention that I do not fully understand what any of these things is trying to do. This is my first time using github, and I am not really sure what is going wrong here or why. Any assistance would be greatly appreciated.