- Before starting to work, execute
git remote updateto fetch changes fromorigin. - Either continue working on your current branch or create a new one if it doesn't exist.
- Creating a new branch can be done with
git branch labX-assignmentY(for someXandY). - Change your branch from
masterto your new one withgit checkout labX-assignmentY.
- Creating a new branch can be done with
- Work. Work. Work. When you are happy, you should commit and push your changes upstream.
- Add the changes you made to the staging area with
git add -A, as usual. - Commit the changes with
git commit -m "Some nice feature", as usual. - Publish your changes to the remote repository
git push origin labX-assignmentY.
- Add the changes you made to the staging area with
- Now, continue working and doing (1-3) over and over again until the task is done.
- Finally, go to GitHub repository page, press
New Pull Requestand select your branch. - Wait for comments from the other group members. Thereafter, press
Mergetomaster. - You are now done! If you want, delete the current branch (in GitHub). Go back to (1)!
Martin Estgren mares480@student.liu.se
Björn Jansson bjoja408@student.liu.se
Erik S. V. Jansson erija578@student.liu.se
Sebastian Maghsoudi sebma654@student.liu.se