Welcome to the OpenCopilotCloud
repository, a private version of the OpenCopilot project. This guide will walk you through the basics of working with this repository, including how to push changes and keep it synchronized with the original OpenCopilot
repo.
To start working with the OpenCopilotCloud
repository, clone it to your local machine:
git clone https://github.com/openchatai/OpenCopilotCloud.git
cd OpenCopilotCloud
Since this repository is intended to stay in sync with the OpenCopilot
original repo, set up an additional remote named upstream
:
git remote add upstream https://github.com/openchatai/OpenCopilot.git
Now, your repository is connected to both the private (origin
) and the original public (upstream
) repositories.
When you're ready to make changes:
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes in the code.
- Commit your changes:
git add . git commit -m "Describe your changes here"
- Push your branch to the private repository:
git push origin feature/your-feature-name
To keep your private repository updated with changes from the OpenCopilot
repository:
- Fetch the latest changes from the original repo:
git fetch upstream
- Merge the changes into your desired branch:
git checkout your-branch git merge upstream/main
- Resolve any merge conflicts if they arise.
- Regularly pull updates from the
upstream
to stay synchronized with the original repository. - Always work on a new branch for each feature or fix, rather than directly on the
master
branch. - Before pushing your changes, rebase if necessary to maintain a clean commit history.