Why does the working command is tfo = !git checkout -b emergency-exit && git add . && git commit -m 'Emergency exit' && git push origin head -u and it renames my current branch? My notebook is mac.
tfo = !git checkout -b emergency-exit && git add . && git commit -m 'Emergency exit' && git push origin head -u
Are you sure it renamed your branch or just switched you to the new branch? Check your list of branches.
No where in the function does it say:
> git branch -m emergency-exit
The above is what it would take to rename a branch locally.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Why does the working command is
tfo = !git checkout -b emergency-exit && git add . && git commit -m 'Emergency exit' && git push origin head -u
and it renames my current branch? My notebook is mac.
Are you sure it renamed your branch or just switched you to the new branch? Check your list of branches.
No where in the function does it say:
> git branch -m emergency-exit
The above is what it would take to rename a branch locally.