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

Handling Merge Conflics #1

Open
s2t2 opened this issue Nov 18, 2024 · 1 comment
Open

Handling Merge Conflics #1

s2t2 opened this issue Nov 18, 2024 · 1 comment

Comments

@s2t2
Copy link
Owner

s2t2 commented Nov 18, 2024

Basically when it says there is a conflict and gives you content like this:

<<<<<<< stocks-qc
```
=======
'''
>>>>>>> main

you basically have to choose which to keep. So in this case assuming you changed quotes to backticks and want to keep the backticks, we just keep:

```

We get rid of the <<<< line, the ==== line, and the >>>> line.

@s2t2
Copy link
Owner Author

s2t2 commented Nov 18, 2024

Example conflict:

<<<<<<< stocks-qc
from app.stocks import fetch_stocks_csv, format_usd


def test_usd_formatting():
    assert format_usd(3.5) == "$3.50"
    assert format_usd(0.44444) == "$0.44"
    assert format_usd(123456789) == "$123,456,789.00"
=======
from app.stocks import fetch_stocks_csv
>>>>>>> main

In this example, assuming we added the second import and corresponding test function, we keep the top (above the ====) and remove the bottom (below the ==========)

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

1 participant