I want to Push a file to GitLab and need SSH link Is it in clone button? Can we this SSH for pull and clone? Is it same ?
CodePudding user response:
Yes, you can find the SSH URL with the Clone button.
That will clone the full repository though, not just a file.
And it implies you already registered a public SSH key to your GitLab profile, for authentication.
That is mandatory when you want to push back a file, because GitLab needs to check if you have the right to do so. IE, to check if you are the owner of the target remote repository, or a declared collaborator.
CodePudding user response:
Yes.
You can use an SSH key for pushing, pulling, cloning and every other git related command.
Think of it as your authentication to Gitlab Git servers.