gitlab-sandstorm
gitlab-sandstorm copied to clipboard
Instructions for adding remotes instead of cloning new repositories?
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?
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
This issue was moved to sandstormports/gitlab-sandstorm#10