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

How to keep new repository in sync with template #62

Open
vivekvt opened this issue Aug 29, 2021 · 0 comments
Open

How to keep new repository in sync with template #62

vivekvt opened this issue Aug 29, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@vivekvt
Copy link
Contributor

vivekvt commented Aug 29, 2021

In this example I have created frontend repository for woobb-frontend you can follow the same steps for all projects for both frontend and backend

1 Create new repository

Screenshot 2021-08-29 at 10 00 33 PM

2 Copy the ssh url of the new repository

Screenshot 2021-08-29 at 10 50 20 PM

3 Then go to vijaa-frontend reposiotry on local machine
In terminal
checkout to master branch

git checkout master

then change the remote url by using this command (ssh copied from step 2)

git remote set-url origin <new-repository's-ssh-url>

Push the code to new repository

git push origin master

This will push all code in vijaa-frontend repo to your new repo
Screenshot 2021-08-29 at 10 53 56 PM

4 Then again in same terminal change the remote url back to vijaa-frontend (https://github.com/Codemarket2/vijaa-frontend)

git remote set-url origin [email protected]:Codemarket2/vijaa-frontend.git

Screenshot 2021-08-29 at 10 56 34 PM

5 Open new terminal and clone the new repository which you just created

git clone <new-repository's-ssh-url>

6 Add new remote url to vijaa-frontend (https://github.com/Codemarket2/vijaa-frontend)

git remote add template [email protected]:Codemarket2/vijaa-frontend.git

Step 1 -6 only needed for 1st time

7 This command will pull and merge all changes from vijaa-frontend into your new repository

git pull template master

8 Push to master

git push origin master

You have to keep repeating the 7 , 8 step to keep new repository in sync with vijaa-frontend

@vivekvt vivekvt added the documentation Improvements or additions to documentation label Sep 21, 2021
vivekvt pushed a commit that referenced this issue Mar 22, 2022
email UI now has new input called email sender label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant