public Question • 1 min read How do I rename a local Git branch? To rename the current branch: git branch -m To rename a branch while pointed to any branch: git branch -m…
public Question • 1 min read How do I delete a Git branch locally and remotely? git push -d git branch -d Note: In most cases, will be origin. Delete Local Branch To delete the local…
public Question • 1 min read How to Undo a Commit in Git $ git commit -m "Something terribly misguided" # (0: Accidentally commited) $ git reset HEAD~ # (1) [ edit files as necessary ] # (2) $ git add…