How to push after merge back to master?

I wanted to merge a branch into master and followed the steps gitlab told me to do. git fetch origin git checkout -b "testbranch" "origin/testbranch" git fetch origin git checkout "origin/master" git merge –no-ff "testbranch" Here I fixed all the conflicts git commit -m "merged" git push origin "master" The problem is that when trying… Read More How to push after merge back to master?

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?

Delete commit from array Ruby gitlab

I am trying to remove one of the objects from a gitlab array of several commits. [ { :commit=>#<Git: :Object: :Commit: @base=#<Git: :Base: @logger=nil, @working_directory=#<Git: :WorkingDirectory: @path=" ">, @repository=#<Git: :Repository: @path=" /.git">, @index=#<Git: :Index: @path=" /.git/index">, @lib=#<Git: :Lib: @git_dir=" /.git", @git_index_file=" /.git/index", @git_work_dir=" ", @path=nil, @logger=nil, @git_system_env_variables={ "GIT_DIR"=>nil, "GIT_WORK_TREE"=>nil, "GIT_INDEX_FILE"=>nil, "GIT_SSH"=>nil }>>, @objectish="", @contents=nil, @trees=nil,… Read More Delete commit from array Ruby gitlab