Wednesday, February 21, 2024
HomeSoftware EngineeringHow one can Rename a Git Department

How one can Rename a Git Department


If you wish to rename a git department, then you might have a couple of choices, depending on the use-case.

Choice 1 – Rename a Git Department

git department -a <oldname> <newname>

Choice 2 – Rename the Present Department

git department -m <newname>

Choice 3 – On Home windows

Home windows required a capital “-M” as a substitute.

git department -M <newname>

Push the Native Department and Reset the Upstream Department

git push origin -u <newname>

Delete the Previous Distant Department

git push origin --delete <oldname>
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments