-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
git chain push should set upstream (remote) automatically if one does not exist. This is more smarter than bailing out naively:
Lines 340 to 347 in f51494c
| if e.code() == ErrorCode::NotFound { | |
| println!( | |
| "🛑 Cannot push. Branch has no upstream: {}", | |
| self.branch_name.bold() | |
| ); | |
| // do nothing | |
| return Ok(false); | |
| } |
Do not do this for git chain push --force since it's a dangerous operation.
Bonus: if git chain push --force fails, then suggest that the user run git chain push if upstream (remote) branches are detected to not be set.
Starting points:
JoshFerge, justdigi and jvlara
Metadata
Metadata
Assignees
Labels
No labels