Closed stevennt closed 4 months ago
Step 1: From your project repository, check out a new branch and test the changes.
git checkout -b khoj-ai-master khoj.master git pull https://github.com/khoj-ai/khoj.git master Step 2: Merge the changes and update on GitHub.
git checkout khoj.master git merge --no-ff khoj-ai-master git push origin khoj.master
My situation:
It says there are conflicts.
Give me the commands I can run in my repo to get the changes in my repo and to resolve conflicts if any?
cd path/to/your/local/repo git remote add upstream https://github.com/khoj-ai/khoj.git git fetch upstream git checkout khoj.master git merge upstream/master
git add path/to/resolved/file git commit -m "Merged upstream master into khoj.master and resolved conflicts" git push origin khoj.master
git clone https://github.com/stevennt/myai.abn.khoj.git cd myai.abn.khoj
git remote add upstream https://github.com/khoj-ai/khoj.git
git fetch upstream
git checkout khoj.master
git merge upstream/master
Open the conflicting files in your text editor. Look for conflict markers (<<<<<<, =======, >>>>>>>) and edit the files to resolve the conflicts.
git commit -m "Merge upstream changes and resolve conflicts"
git push origin khoj.master