gitlab-sandstorm icon indicating copy to clipboard operation
gitlab-sandstorm copied to clipboard

Instructions for adding remotes instead of cloning new repositories?

Open patrickod opened this issue 8 years ago • 2 comments

Often times when I want to use gitlab on sandstorm it's to share an existing project that I've kept private elsewhere with others. In this case I'd like to simply add a new sandstorm git remote instead of cloning a new repository. It'd be nice if there were copy/paste instructions in the gitlab interface when you're creating a new repository such that you can more easily achieve this.

As far as I can tell the first command would remain the same, but following that you'd need to change git remote add sandstorm $URL. Does git remote take the same -c flag to set credential.helper as the clone operation does?

patrickod avatar Apr 25 '16 22:04 patrickod

You can run git config credential.helper store before or after adding the remote. This sets a local repository option that tells git to look in ~/.git-credentials for the stored password.

https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage

timhowes avatar May 02 '16 19:05 timhowes

This issue was moved to sandstormports/gitlab-sandstorm#10

xet7 avatar Jul 31 '18 19:07 xet7