after checkout fatal: You are not currently on a branch. 1

after checkout fatal: You are not currently on a branch.

git branch temp-branch
git checkout master
git merge temp-branch
git push origin master

Here is what the above code is Doing:
1. Create a new branch called temp-branch
2. Switch to the master branch
3. Merge the temp-branch into the master branch
4. Push the master branch to the remote repository

Similar Posts