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

git reprex ? #20

Open
moodymudskipper opened this issue Mar 12, 2024 · 0 comments
Open

git reprex ? #20

moodymudskipper opened this issue Mar 12, 2024 · 0 comments

Comments

@moodymudskipper
Copy link

Discussed today with @krlmlr

  • Git in theory should relieve us from the anxiety of creating a mess, because we can always go back
  • In practice however it's common to be very afraid of making a mess with git (you start a merge/rebase you don't know how to abort it or if it's done or not etc, you're afraid that you lost or messed with the stash...)

A git reprex is basically just a copy of a repo, in a temp (default) or chosen location, with (if technically possible) the pushing to the remote is disabled. I can do whatever I want in this repo and it won't affect my project, so I can test my rebase skills there, or pull and deal with conflicts without freaking out.

Fancier would be to be able to squash some commits, remove some branches, to make the reprex simpler (without having a trace of those operations in the original or new repo). This takes us closer to a "minimal" reprex but I'm not sure what the api would be.

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