• Source control

    Quick Git - Undo local commits

    git reset --soft {commit sha}

  • Source control

    Quick Git - Remove local commits

    git reset --hard {commit sha}

  • Source control

    Quick Git - Undo local changes

    # remove uncommitted filesgit add .git stashgit stash drop

    # remove untracked filesgit clean -fdx

  • Source control

    Quick Git - Remove branches

    # remove local branchgit branch -D {branch}

    # remove remote branchgit push -d origin {branch}

An error has occurred. This application may no longer respond until reloaded. Reload 🗙