How do I delete a merge commit?

I have done some mess in my repo, which I don’t understand at all. A strange commit has appeared: commit 70cc4bd585019286ef64ef591f1b6ab310484eb3 (HEAD, origin/master, origin/HEAD, master) Merge: 960b06a 709f964 Author: DuchSuvaa bga.sowa@gmail.com Date: Tue Sep 12 15:46:05 2023 +0200 Merge branch ‘master’ of https://github.com/DuchSuvaa/monitor-kolejek I don’t really understand how that happened. Someone told me that git… Read More How do I delete a merge commit?

How do I delete a merge commit?

I have done some mess in my repo, which I don’t understand at all. A strange commit has appeared: commit 70cc4bd585019286ef64ef591f1b6ab310484eb3 (HEAD, origin/master, origin/HEAD, master) Merge: 960b06a 709f964 Author: DuchSuvaa bga.sowa@gmail.com Date: Tue Sep 12 15:46:05 2023 +0200 Merge branch ‘master’ of https://github.com/DuchSuvaa/monitor-kolejek I don’t really understand how that happened. Someone told me that git… Read More How do I delete a merge commit?

What is the right way to pull my changes from gitlab to remote server?

Let’s say I have some private project in GitLab. To access this project from my local machine I’m: Generate ssh keypair. Add public key to my Account (mygitlab.com/-/profile/keys). Do git clone git@mygitlab.com:mygroup/myproject.giton local machine. Work. Then I want to deploy my project on remote production server 1.2.3.4. Ideally I want to just ssh into this… Read More What is the right way to pull my changes from gitlab to remote server?

Clone a group of Gitlab projects or update if project already exists

There’s a list of Gitlab projects within one group and SSH links are extracted to a separate file that gets then imported to the bash script: #!/bin/bash readarray -t repos < ./repositories.txt for repo in "${repos[@]}" do git clone "$repo" done It works perfectly fine when the directory it operates in is empty. Otherwise, I… Read More Clone a group of Gitlab projects or update if project already exists

Why do I get "nothing to commit, working tree clean" after a merge request?

Why does git status in branch develoment after a merge request on origin develoment in gitlab tell me "nothing to commit, working tree clean" but when I do a git pull in branch development it fetches the latest status. I can’t imagine that this is a bug. Git and Gitlab are too ingenious for that.… Read More Why do I get "nothing to commit, working tree clean" after a merge request?

How can I extract specific value from JSON response?

Hi I am trying to get value from JSON response which Im getting from GitLab API. Code should extract "commiter_name" value but it does not work, already tried several options from internet. def getCom(): com = requests.get("https://gitlab.com/api/v4/projects/.." headers = {‘PRIVATE-TOKEN’: ‘…..’}).content Error: File "getData.py", line 24, in getCom resp = com.json() ["commiter_name"] AttributeError: ‘bytes’ object… Read More How can I extract specific value from JSON response?