-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add API to check if there are merge conflicts
- Loading branch information
Showing
18 changed files
with
461 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Merge Conflict | ||
|
||
Here are some commands to generate a merge conflict: | ||
|
||
```bash | ||
# create empty directory | ||
$ mkdir merge-conflict-demo | ||
$ cd merge-conflict-demo | ||
|
||
# create a new oxen repo and add a test csv file on main | ||
$ oxen init | ||
$ echo "file,label" > test.csv | ||
$ echo "images/dog.png,dog" >> test.csv | ||
$ oxen add test.csv | ||
$ oxen commit -m "adding a dog" | ||
|
||
# checkout a new branch where you are going to append a cat | ||
$ oxen checkout -b "adding-cat" | ||
$ echo "images/cat.png,cat" >> test.csv | ||
$ oxen add test.csv | ||
$ oxen commit -m "adding a cat" | ||
|
||
# checkout the main branch again, and append a fish | ||
$ oxen checkout main | ||
$ echo "images/fish.png,fish" >> test.csv | ||
$ oxen add test.csv | ||
$ oxen commit -m "adding a fish" | ||
|
||
# try to merge the branch with the cat (should fail) | ||
$ oxen merge adding-cat | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.