Commit 7624824c authored by Sean McGivern's avatar Sean McGivern

Merge branch 'suggest-rename-origin' into 'master'

Suggest to rename the remote for existing repositories

See merge request gitlab-org/gitlab-ce!14970
parents a65b2974 24077144
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
%pre.light-well %pre.light-well
:preserve :preserve
cd existing_repo cd existing_repo
git remote rename origin old-origin
git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'clone')} git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'clone')}
git push -u origin --all git push -u origin --all
git push -u origin --tags git push -u origin --tags
......
---
title: Suggest to rename the remote for existing repository instructions
merge_request: 14970
author: helmo42
type: added
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment