- Learn more about Use SSH keys to communicate with GitLab
- Generate an SSH key pair
- Add an SSH key to your GitLab account
GitLab docs: Clone a repository
- Open a terminal and go to the directory where you want to clone the files.
- Copy this repo Git SSH url (REPO_URL) and clone the repo
git clone REPO-URL
- Note:
- Git automatically creates a folder with the repository name and downloads the files there.
# Go to the new directory:
cd project-1-git
# Create `dev` branch and checkout to it
git checkout -b dev
# Create a config file
touch config.yaml
echo "repo: project-1-git" >> config.yaml
cat config.yaml
# Commit changes
git add config.yaml && git commit -m "Add config.yaml"
# Push to GitLab
git push origin dev
- Create a Merge Request (via GitLab UI) to the
main
branch - Wait...
- Check the test assignment report