Game about saving the planet
To clone the repository, use the following command:
git clone https://gitlab.eeecs.qub.ac.uk/40466135/save-the-planet.git
cd save-the-planet
As a developer, you should work on your own branch. Use your QUB student number as the branch name. To check out your branch, use:
git checkout your-student-number
You can list all branches with:
git branch -l
- Create or upload files
- Add files using the command line or push an existing Git repository with the following command:
cd existing_repo
git remote add origin https://gitlab.eeecs.qub.ac.uk/40466135/save-the-planet.git
git branch -M main
git push -uf origin main
Always check you are not on someone else's branch by using:
git branch -l
To push your changes to your branch, use the following commands:
git add .
git commit -m "Your commit message"
git push origin your-student-number
When you're ready to merge your changes, follow these steps:
- Make sure you're not pushing directly to the main branch.
- Create a merge request with a clear and descriptive message.
- Mention any related issues or tasks in the merge request description.
- Request a review from a team member to ensure everything is good to go.
To create a merge request from the command line:
git checkout main
git pull origin main
git checkout your-student-number
git merge main
git push origin your-student-number
Then go to GitLab and create a merge request from your branch to main.
To import and clone changes made by other team members, use their student number as the branch name:
git fetch origin their-student-number
- Invite team members and collaborators
- Create a new merge request
- Automatically close issues from merge requests
- Enable merge request approvals
- Set auto-merge
Use the built-in continuous integration in GitLab.
- Get started with GitLab CI/CD
- Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)
- Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy
- Use pull-based deployments for improved Kubernetes management
- Set up protected environments