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?
Asked
Active
Viewed 22 times
1

sadboy99
- 45
- 1
- 6
-
can you post the error message – Somil Garg Nov 19 '19 at 04:28
-
its asks for the commit message but when i type it and press enter it just goes to a new line how can i actually commit the code? – sadboy99 Nov 19 '19 at 04:41
-
`git commit -m "commit message"` are you using the same thing – Somil Garg Nov 19 '19 at 04:42
1 Answers
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