Skip to content

newb question...tips for maintaining two similar repos #22268

Answered by Wabri
JasonNPitt asked this question in New to GitHub
Discussion options

You must be logged in to vote

Hi @evilxsystems,

Welcome to the Github Community Forum!

If i’m not missunderstanding you can create a new remote repository in your local repository, with this you can push two times instead of copy and paste the code to the other local repository and push to the remote private repository.

To do this you need the remote command of git -> git-remote-docs

An example:

                  A—B---C—D     origin_public/master

                             II  

                   A—B---C—D     local/master

You have the remote repository and the local one. Now you want to add a new remote repository:

git remote add <name_of_new_remote> <link_of_remote>

if i called the new remote origin_private and …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants