未为提交git暂存更改

未为提交git暂存更改,git,Git,我正试图将我的更改提交到git,但我收到一条消息,上面说更改未提交:。以前,我经常使用的命令是git add commit-m“message”,但现在我不知道在这个版本的git中使用了什么语法,即git版本2.15.0。我在git网站上查找文档,但没有找到。有人能帮我吗 1)使用-a标志进行自动添加: git commit-am“您的消息” 或2) git add--all 然后 git commit-m“您的邮件”1)使用-a标志自动添加: git commit-am“您的消息” 或2) g

我正试图将我的更改提交到
git
,但我收到一条消息,上面说
更改未提交:
。以前,我经常使用的命令是
git add commit-m“message”
,但现在我不知道在这个版本的git中使用了什么语法,即git版本2.15.0。我在
git
网站上查找文档,但没有找到。有人能帮我吗

1)使用
-a
标志进行自动添加:

git commit-am“您的消息”

或2)

git add--all
然后
git commit-m“您的邮件”

1)使用
-a
标志自动添加:

git commit-am“您的消息”

或2)

git add--all
然后
git commit-m“您的消息”

分解步骤以正确理解引擎罩内发生的事情

第1步:

 ## Add your modified files to stage area using,
 git add -u
第二步:

 ## Commit/Take snapshot your modified files with message on the staging area
 git commit -m "Add php and bash file payroll"
 ## Push your changes to remote branch using,
 git push 
第三步:

 ## Commit/Take snapshot your modified files with message on the staging area
 git commit -m "Add php and bash file payroll"
 ## Push your changes to remote branch using,
 git push 

分解步骤以正确了解发动机罩内发生的情况

第1步:

 ## Add your modified files to stage area using,
 git add -u
第二步:

 ## Commit/Take snapshot your modified files with message on the staging area
 git commit -m "Add php and bash file payroll"
 ## Push your changes to remote branch using,
 git push 
第三步:

 ## Commit/Take snapshot your modified files with message on the staging area
 git commit -m "Add php and bash file payroll"
 ## Push your changes to remote branch using,
 git push 

您必须在提交之前进行阶段性更改。运行
git add--all
。可能的副本必须在提交之前进行阶段性更改。运行
git add--all
。git commit-m“message”的可能重复项…或
git commit-m“message”…