
git-checkout
List of commands for git-checkout:
-
git-checkout:tldr:0f654 git-checkout: Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references).$ git checkout -b ${branch_name} ${reference}try on your machineexplain this command
-
git-checkout:tldr:3673d git-checkout: Discard all unstaged changes in the current directory (see `git reset` for more undo-like commands).$ git checkout .try on your machineexplain this command
-
git-checkout:tldr:6e0f0 git-checkout: Switch to an existing remote branch.$ git checkout --track ${remote_name}/${branch_name}try on your machineexplain this command
-
git-checkout:tldr:d91b8 git-checkout: Switch to the previously checked out branch.$ git checkout -try on your machineexplain this command
-
git-checkout:tldr:e18a3 git-checkout: Create and switch to a new branch.$ git checkout -b ${branch_name}try on your machineexplain this command
-
git-checkout:tldr:e4597 git-checkout: Switch to an existing local branch.$ git checkout ${branch_name}try on your machineexplain this command