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

Repository maintenance #2304

Open
poonkuzhali opened this issue Jan 24, 2025 · 1 comment
Open

Repository maintenance #2304

poonkuzhali opened this issue Jan 24, 2025 · 1 comment

Comments

@poonkuzhali
Copy link

Hello,

Can anyone provide any tips, information or best practices on how to maintain the code repository?

We are using this repository and customized it for our use case. But the problem is , the original Microsoft repository keeps getting new features and updates constantly. It is hard to replicate the changes. Any feedback on how others are doing it will be highly appreciated

@bnodir
Copy link
Contributor

bnodir commented Jan 25, 2025

To maintain an updated and customized code repository, you can follow these steps:

  1. Fork the original Microsoft repository:

    • This creates your own copy of the repository which you can modify without affecting the original.
  2. Create a custom branch (e.g., custom-branch):

    • This allows you to work on your customization separately from the main branch.
  3. Update your repository when the original gets new features:

    • Switch to the main branch: git checkout main
    • Pull updates from the original repository: git pull upstream main
  4. Create a new branch for merging (e.g., custom-branch-updated):

    • Switch to your custom branch: git checkout custom-branch
    • Create the new branch: git checkout -b custom-branch-updated
  5. Merge the main branch into your new branch:

    • Switch to the new branch: git checkout custom-branch-updated
    • Merge changes: git merge main
      NB: You may face merge conflicts during this step, and it is essential to resolve them carefully to ensure that both updates from the main branch and your custom changes are preserved.

Hope this helps!

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

2 participants