Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1 KB

File metadata and controls

55 lines (38 loc) · 1 KB

Explore git remote PR

Step 1: Clone an existing repo from the previous lab

git clone <url>
cd git-remote

Step 2: Make Create a new branch and make changes on the local repo

Create a new branch

git checkout -b feature/login

Make changes to the new branch

echo "This is a feature/login branch file" >> login-file.txt
git add .
git commit -m "feat: login"

Push the changes

git push origin feature/login # This might produce error, read the logs

Again push the changes correctly,

git push -u origin feature/login

Step 3: Observe the GitLab

merge-request-notification

Step 4: Open a pull request

You can read the logs of git as well

or refer gitlab GUI

create-new-merge-request

Step 5: Approve the merge request

approve-the-merge-request

Step 6: Pull the new changes on the main branch

git checkout main
git pull