Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法将提交和推送代码从Mac终端添加到github_Github - Fatal编程技术网

无法将提交和推送代码从Mac终端添加到github

无法将提交和推送代码从Mac终端添加到github,github,Github,有人知道如何从终端将代码推送到Github吗? 我执行git add。但是,当我执行git提交时,它显示了许多错误。有人能告诉我正确的方法吗?只会进行提交,而无需输入消息。 但这不是一个好的做法 将使用给定的作为提交消息。 如“”所示,多行-m表示提交消息有多行 git commit -m "My head line" -m "My content line." 只会在不必输入消息的情况下进行提交。 但这不是一个好的做法 将使用给定的作为提交消息。 如“”所示,多行-m表示提交消息有多行 g

有人知道如何从终端将代码推送到Github吗? 我执行git add。但是,当我执行
git提交时,它显示了许多错误。有人能告诉我正确的方法吗?

只会进行提交,而无需输入消息。
但这不是一个好的做法

将使用给定的
作为提交消息。
如“”所示,多行
-m
表示提交消息有多行

git commit -m "My head line" -m "My content line." 
只会在不必输入消息的情况下进行提交。
但这不是一个好的做法

将使用给定的
作为提交消息。
如“”所示,多行
-m
表示提交消息有多行

git commit -m "My head line" -m "My content line." 

你能发布错误消息吗?它要求提交消息,但当我键入它并按enter键时,它只会转到一个新行,我如何才能真正提交代码?
git commit-m“commit message”
您使用的是相同的东西吗?您可以发布错误消息吗?它要求提交消息,但当我键入它并按enter键时,它会转到一个新行。我如何才能真正提交代码?
git commit-m“commit message”
您使用的是相同的东西吗