Skip to main content
edited body
Source Link
Dai Kaixian
  • 1.1k
  • 2
  • 14
  • 24

All of the previous answers are talking about git branch -m. Of course, it's easy to operate, but for me, it may be a little hard to remember another Git command. So I tried to get the work downdone by the command I was familiar with. Yeah, you may guessed it.

I use git branch -b <new_branch_name>. And if you don't want to save the old branch now you can execute git branch -D <old_branch_name> to remove it.

I know it may be a little tedious, but it's easier to understand and remember. I hope it‘s helpful for you.

All of the previous answers are talking about git branch -m. Of course, it's easy to operate, but for me, it may be a little hard to remember another Git command. So I tried to get the work down by the command I was familiar with. Yeah, you may guessed it.

I use git branch -b <new_branch_name>. And if you don't want to save the old branch now you can execute git branch -D <old_branch_name> to remove it.

I know it may be a little tedious, but it's easier to understand and remember. I hope it‘s helpful for you.

All of the previous answers are talking about git branch -m. Of course, it's easy to operate, but for me, it may be a little hard to remember another Git command. So I tried to get the work done by the command I was familiar with. Yeah, you may guessed it.

I use git branch -b <new_branch_name>. And if you don't want to save the old branch now you can execute git branch -D <old_branch_name> to remove it.

I know it may be a little tedious, but it's easier to understand and remember. I hope it‘s helpful for you.

Active reading [<https://en.wikipedia.org/wiki/Git>]. (References to relative positions of answers are not reliable as they depend on the view (votes/newest/active) and changing of the accepted answer and change over time (for votes, active, and accepted state)).
Source Link
Peter Mortensen
  • 31.1k
  • 22
  • 111
  • 134

All of the aboveprevious answers are talking about git branch -m.Of Of course, it's easy to operate, but for me, it may be a little hard to remember another gitGit command. So I tried to get the work down by the command I was familiar with.Yeah Yeah, you may guessed it.

I use git branch -b <new_branch_name>.And And if you don't want to save the old branch now you can execute git branch -D <old_branch_name> to remove it.

I know it may be a little tedious, but it's easier to understoodunderstand and remember.Hope I hope it‘s helpful for you.

All of the above are talking about git branch -m.Of course, it's easy to operate, but for me, it may be a little hard to remember another git command. So I tried to get the work down by the command I was familiar with.Yeah, you may guessed it.

I use git branch -b <new_branch_name>.And if you don't want to save the old branch now you can execute git branch -D <old_branch_name> to remove it.

I know it may be a little tedious but it's easier to understood and remember.Hope it‘s helpful for you.

All of the previous answers are talking about git branch -m. Of course, it's easy to operate, but for me, it may be a little hard to remember another Git command. So I tried to get the work down by the command I was familiar with. Yeah, you may guessed it.

I use git branch -b <new_branch_name>. And if you don't want to save the old branch now you can execute git branch -D <old_branch_name> to remove it.

I know it may be a little tedious, but it's easier to understand and remember. I hope it‘s helpful for you.

Source Link
Dai Kaixian
  • 1.1k
  • 2
  • 14
  • 24

All of the above are talking about git branch -m.Of course, it's easy to operate, but for me, it may be a little hard to remember another git command. So I tried to get the work down by the command I was familiar with.Yeah, you may guessed it.

I use git branch -b <new_branch_name>.And if you don't want to save the old branch now you can execute git branch -D <old_branch_name> to remove it.

I know it may be a little tedious but it's easier to understood and remember.Hope it‘s helpful for you.