Error:-
You are not currently on a branch.Please specify which branch you want to rebase against.See git-pull(1) for details

Solution :-
git status
git branch main
git branch checkout main
git pull origin main

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!
Learn from Guru Rajesh Kumar and double your salary in just one year.
You are not currently on a branch.Please specify which branch you want to rebase against.See git-pull(1) for details
git status
git branch main
git branch checkout main
git pull origin main