-
Notifications
You must be signed in to change notification settings - Fork 3
GitLab
ghdrako edited this page Feb 1, 2024
·
6 revisions
Verify connection after add keys to gitlab
ssh -T git@gitlab.example.com # shoud see “Welcome to GitLab, @username!” message
ssh -Tvvv git@gitlab.example.com # to debug problems
git config core.sshCommand "ssh -o IdentitiesOnly=Yes -i ~/.ssh/private-key-filename-for-this-repository -F/dev/null"
https://forum.gitlab.com/t/refreshing-a-fork/32469
GitLab Repository Mirror Navigate into Settings > Repository > Mirroring repositories.
- Add the upstream URL
- Mirror direction: Pull
- Tick Only mirror protected branches (optional) This feature is available in the Premium tier: Pull from a remote repository | GitLab
Go to project: "Settings" → "Repository" → scroll down to "Protected branches".
And add to Allwed to push
- https://docs.gitlab.com/ee/api/projects.html#archive-a-project In example archive project
remote: GitLab: Author 'user@bank.ad.bank.pl' is not a member of team
To code.pkobp.pl:user/anthos-configs-new.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'code.bank.pl:user/anthos-configs-new.git
W Gtlab na projekcie do którego jest proba push-a
Settings->Repository->Push Rules
Uncheck Check whether the commit author is a GitLab user
and click button Save Push Rules
Test