My git knowledge is not as strong as it should be and the docs I find are great but very generic and don't easily lead me to my desired workflow.
I want to create a private repo for each student, such that when they put in a pull request I will be able to code review it for them before it is merged. However, my experiments have not really panned out. (I'm at command-line git).
1) Create the private repo, and set master to protected and review required - got it
2) Invite the student - got it
3) student clones repo - got it
4) student creates a branch - got it ("git checkout -b `branch-name", do I/they need to specify more?)
5) student adds/commits - got it
6) student pushes - Lost here. ("git push" fails, as does "git push origin", and "git push origin HEAD:master" feels too cumbersome to be the norm, and "git push origin branch-name" is okay, I guess...)
I'm trying to get a push that will create a pull request, or at least inform them they need to go to the website and create one. As it is from the command line they have no clue a PR is required, and if I notice the new branch and start the PR for them, I can't code review (because I'm the one requesting).
Also - what is the most painless way for them to pull changes in? ("git pull" complains about setting upstream, is there a way to set that when they create the clone and/or branch?)
I'm assuming this is very easy and I'm just a bit lost. Help appreciated! Thanks in advance.