The main way to learn guitar is to practice.
1. Practice the independence of each finger, on the air string, thumb with three bass strings, index finger with three strings, middle finger with two strings, ring finger with one string, practice 53231323, 532123 and other things (right hand). 53231323 and 532123 refer to strings, 5 to play five strings, 3 to play three strings and 2 to play two strings.
2. Learn scales in C major and practice them over and over again.
3. Play a few simple solos in C major.
4. Start studying chords in C major.
5. Learn theoretical knowledge and learn how to tune the relationship between guitar. Then you won’t be confined to C major.
7. Start learning more chords.
8. Practice playing and singing.