How to create a new branch from a specific commit?
Description : Use `git checkout -b <branch-name> <commit-hash>` to create a branch.
Answer :
To create a newbranch from a specific commit, use `git checkout -b <branch-name> <commit-hash>`. This will create a newbranch starting from the commit you specify, rather than the most recent one.
To initialize a Git repository, open your terminal or command prompt, navigate to the directory where you want your Git project to live, and run the command `git init`. This will create a new.git subdirectory that contains all necessary Git files and will start tracking your project.
To initialize a Git repository, open your terminal or command prompt, navigate to the directory where you want your Git project to live, and run the command `git init`. This will create a new.git subdirectory that contains all necessary Git files and will start tracking your project.