Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions for adding remotes instead of cloning new repositories? #10

Open
xet7 opened this issue Jul 31, 2018 · 1 comment
Open

Comments

@xet7
Copy link
Member

xet7 commented Jul 31, 2018

From @patrickod on April 25, 2016 22:30

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?

Copied from original issue: dwrensha/gitlab-sandstorm#15

@xet7
Copy link
Member Author

xet7 commented Jul 31, 2018

From @timhowes on May 2, 2016 19:40

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant