Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Save changes on new branch #54

Open
UziTech opened this issue May 17, 2017 · 3 comments
Open

Save changes on new branch #54

UziTech opened this issue May 17, 2017 · 3 comments
Labels

Comments

@UziTech
Copy link
Owner

UziTech commented May 17, 2017

Command Name

Commit changes to new branch

Git Command(s)

  1. create new branch
  2. commit changes
  3. switch back to original branch

Dialog Input (if applicable)

  • new branch name
  • commit message
  • track origin checkbox

Input Validation

  • new branch is not blank
  • New branch doesn't already exist?
  • commit message is not blank
@UziTech
Copy link
Owner Author

UziTech commented Apr 3, 2019

Could this be part of commit dialog?

@UziTech
Copy link
Owner Author

UziTech commented Jan 10, 2020

look into git stash branch {branch-name}

Could make stash and unstash open a dialog

@UziTech
Copy link
Owner Author

UziTech commented Jan 10, 2020

https://stackoverflow.com/a/6925136/806777

  • make changes
  • git stash --include-untracked
  • git stash branch {branch-name}
  • git commit -m {commit-message}
  • git checkout {last-branch}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant