Provide a link to a commit in the terminal when I push one commit
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
As a user when I push on commit on the default branch I frequently want to share it with others. I now have to navigate to https://gitlab.com/gitlab-com/www-gitlab-com/commits/master or construct a url by hand. I think this can be simpler by providing me a url.
When I push commits on a branch from the terminal I already get:
remote: To create a merge request for diversity-clearer, visit:
remote: https://gitlab.com/gitlab-com/www-gitlab-com/merge_requests/new?merge_request%5Bsource_branch%5D=diversity-clearer
When I push a commit on the default branch from the terminal I should get:
remote: To see your commit on GitLab visit:
remote: https://gitlab.com/gitlab-com/www-gitlab-com/commit/166b7dc281b367af3fccc6b2df8c64db098c4340
When I push multiple commit on the default branch from the terminal I should get:
remote: To see the diff of the commits you just pushed visit:
remote: https://gitlab.com/gitlab-com/www-gitlab-com/compare/5ed6fe4fb9aa371064eee9718191682e90b32c82...307371ae47915d3d03d2e1f86eb3e2c6fd853b74
Edited by 🤖 GitLab Bot 🤖