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

How about add --force option for mrgit co command to force checkout branches? #115

Open
zybzzc opened this issue Dec 5, 2019 · 5 comments

Comments

@zybzzc
Copy link

zybzzc commented Dec 5, 2019

No description provided.

@Reinmar
Copy link
Member

Reinmar commented Dec 16, 2019

I never used it but I guess it makes sense. Although, since there are many options that git checkout accepts, I'd suggest doing this like mrgit diff:

mrgit co branch -- --force

This way you'll be able to pass there whatever you need.

@Reinmar Reinmar added this to the nice-to-have milestone Dec 16, 2019
@Reinmar
Copy link
Member

Reinmar commented Dec 16, 2019

Although, the difference between mrgit co and mrgit diff is that diff doesn't require any  param so all params go after --. For mrgit co the branch name perhaps needs to go before -- because that's how mrgit needs it.

@zybzzc
Copy link
Author

zybzzc commented Jan 9, 2020

I found this might not be a good idea, because I can just use mrgit exec 'git checkout -b new-branch to do the same.

@zybzzc
Copy link
Author

zybzzc commented Jan 9, 2020

I found this might not be a good idea, because I can just use mrgit exec 'git checkout -b new-branch to do the same.

Is there a way to change the default shell of mrgit exec?

@pomek
Copy link
Member

pomek commented Jan 9, 2020

Is there a way to change the default shell of mrgit exec?

At this moment, there is no way to change the default shell while executing the exec command.

@pomek pomek removed this from the nice-to-have milestone Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants