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

Diverging branches in github codespaces #84

Open
programlich opened this issue Oct 7, 2024 · 2 comments
Open

Diverging branches in github codespaces #84

programlich opened this issue Oct 7, 2024 · 2 comments
Assignees

Comments

@programlich
Copy link

When I wanted to commit my solution for an assignement, it happened several times, that I ran into a conflict, because for some reason commits were created on the remote part of main while I was working. To fix it, I had to set git config pull.rebase false, then run git pull. After that I could commit and push.
Picture of the commit history after rebasing:

image

@sgbaird
Copy link
Member

sgbaird commented Oct 8, 2024

Oof, that's not good. Thanks for raising this. Perhaps there's a way to set this behavior by default within the codespace.

EDIT: perhaps not too feasible - https://stackoverflow.com/questions/13846300/how-to-make-git-pull-use-rebase-by-default-for-all-my-repositories

Instead, I'll probably need to try to reproduce.

@SissiFeng SissiFeng self-assigned this Oct 11, 2024
@sgbaird
Copy link
Member

sgbaird commented Oct 16, 2024

It might be possible to run this as a command via the devcontainer file.

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

3 participants