DEV Community

Discussion on: 🔥 In case of fire: GTFO

Collapse
 
qcgm1978 profile image
Youth

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.

Collapse
 
chiangs profile image
Stephen Chiang

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.