在Windows上使用Git Bash提交内容,需要执行以下操作,例如:
以这种方式提交所有更改。我只想添加特定的文件(*.h和*.cpp)。解决方案是使用:
感谢您的选择。
1.git add *
2.git commit -m "Commit test"
3.git push origin master
以这种方式提交所有更改。我只想添加特定的文件(*.h和*.cpp)。解决方案是使用:
ad. 1.:
git add *.h
git add *.cpp
但是这种方式只会在当前文件夹中添加*.h和*.cpp文件。问题是如何通过一条命令添加当前文件夹及其子文件夹中的*.h和*.cpp文件? 类似于:
1.git add *.h and *.cpp and_in_subfolders
and then:
2.git commit -m "Commit test"
3.git push origin master
感谢您的选择。