cloning a repo into a new project and then push it to gitlab
问题 I have a need to clone an existing repo into a new one. Repositories are hosted on gitlab. For now i have created a new gitlab repository , and cloned the existing repo into the new one. mkdir newDirectory cd newDirectory git clone ssh://git@git.xyz.com:8888/Project/repo.git git remote rm origin ( to remove the origin frm existing repo) git remote add origin ssh://git@git.xyz.com:8888/Project/Newrepo.git upto here everything worked fine. i checked for branches using command git branch -a - it