I'm getting this error while trying to deploy my branch through gitlab.
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://gitlab.com/[group_name]/[repo_name].git/' not found
error: Could not fetch origin
I managed to resolve my problem. If you're encountering the same problem, follow these steps :
git remote rename origin old_origin
git remote add origin https://[gitlab_username]@gitlab.com/[group_name]/[repo_name].git
git config --add checkout.defaultRemote origin