to help people who have not worked with git before, or struggle to use it in a multi person project here are some guidelines and commands to follow. Also here are some links:
- Git Pro a free book on git, very good guide for using git
- Github markdown guide, not really for git, just good to know when making these things and the projects and issues
- Github Workflow
- Do not work on the master branch, make a branch and work in there, peferably in a branch per task
- Commit often, allows you to rewind work when you break something
- Perferably merge using the pullrequests feature of github, this allows for discussion and also to automation of merging, It also allows for the automation of the project section
- if there are 2 people working on the same feature branch, pull before starting work, pull before pushing too
# create a new branch to store any new changes
git branch my-branch
# switch to that branch (line of development)
git checkout my-branch
# this only pulls the current branch
git fetch origin
git pull origin
you dont need to do this very often, please avoid doing this unless you need changes from the master branch
git rebase -i master