Hi I am new to Git and I am trying to do these simple steps.
First I clone my remote repo from GitHub
git clone git@github.com:eldon/Test.git
Then I make some changes in a file and try to stage it to commit
git add *
Then I commit it:
git commit -m "Initial Commit"
Then I push it:
git push origin master
But then if I check git status
it is showing head detached . If I give the below code its working fine:
git checkout master
Sometimes it is showing head detached after I commit also.
What is the reason for this behavior?