Restoring from a git hashcode


Checking all git hashcode records


git log --graph --oneline --all;

git-log-graph-all


Restoring to a point using a specific git hashCode

git-checkout-hash


git checkout <gitHash>;


Restoring from git HEADs

```bash git log; ```

1. Restoring to a specific git HEAD point

git checkout <HEAD>;

2. Create a new branch from the current detached HEAD state

git branch <tempBranchName>;

3. Switch to the New Branch

git checkout <tempBranchName>;

4. Merge the new branch into main

git checkout main;
git pull origin main;

5. Merge temp branch into main

```bash git merge ; ```

6. Push the changes to remote repository

```bash git push origin main; ```

7. Clean up the temp branch after merging

```bash git branch -d ; ```

Restoring a file from current git hash point

git restore <path/fileName.ext>;