Git how to work with two repositories and a shallow clone?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
There is an opensource project on github.
I cloned from it one branch "10.0" depth in a single commit. I no longer need, and place Nemer is, if you clone completely.
Created branch "dev" on the computer at work to make changes.
Now I need this thread to send in another private repository, which will be the main.
And from time to time to pull the commits from the original project on github ("10.0") and marjit them into your working branch "dev".
Tell me, please how this to implement?
by | 111 views

1 Answer

0 like 0 dislike
The main repository you have goes under the name "origin". Add a second, for example under the name "main" and shove all the code in there
git remote add main main git push dev:dev

now the update process will look something like this
git checkout master git pull origin master git checkout dev git merge master main git push dev:dev

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
asked Mar 22, 2019 by uscr
0 like 0 dislike
2 answers
asked May 20, 2019 by Zlatan77
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
36,553 users