1

does anyone know how to push code to Github from the terminal? I do the git add . but when i do the git commit it shows many errors can anyone show me the right way?

sadboy99
  • 45
  • 1
  • 6

1 Answers1

0

Only git commit --allow-empty-message would make a commit without you having to enter a message.
But that is not a good practice.

git commit -m "<msg>" will Use the given <msg> as the commit message.
As seen in "Add line break to 'git commit -m' from the command line", multiple -m means multiple lines to your commit message.

git commit -m "My head line" -m "My content line." 
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250