Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Git save files in a new branch every time

ajil mohanan answered on March 15, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • how to create new branch and push changes to it
  • Save changes in a new branch git
  • git add file from another branch
  • git branch specific files
  • git branch specific files
  • git branch specific files
  • git save staged changes to file

  • Git save files in a new branch every time

    0

    The sequence to create a new Git branch with local changes in tact, but remove those changes from the original branch, the sequence of commands would look like this: 

    Note that in the above example, we used Git switch, not checkout. The Git switch command came out in 2020, and is preferred over the git checkout command. 

    Popularity 1/10 Helpfulness 1/10 Language shell
    Link to this answer
    Share Copy Link
    Contributed on Mar 15 2023
    ajil mohanan
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.