Skip to content

Instantly share code, notes, and snippets.

@DharmendraRathor
Created July 25, 2018 00:24
Show Gist options
  • Save DharmendraRathor/20b3f758d56bad7be2cbcf3662342c93 to your computer and use it in GitHub Desktop.
Save DharmendraRathor/20b3f758d56bad7be2cbcf3662342c93 to your computer and use it in GitHub Desktop.
Create new Git branch from Git commit
Create new branch from git commit withouth checkingout new branch
git branch newBranchName <commit-id>
Create new branch from git commit with checkingout new branch
git checkout -b newBranchName <commit-id>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment