.gitignore只追踪.h 和.cpp结尾的文件。
*.*
!*.cpp
!*.h
我们一般写的形式为“ git push origin <src>:<dst> ”,冒号前表示local branch的名字,冒号后表示remote repository下 branch的名字。注意,如果你省略了<dst>,git就认为你想push到remote repository下和local branch相同名字的branch。其中origin指定了你要push到哪个remote。
*.*
!*.cpp
!*.h
我们一般写的形式为“ git push origin <src>:<dst> ”,冒号前表示local branch的名字,冒号后表示remote repository下 branch的名字。注意,如果你省略了<dst>,git就认为你想push到remote repository下和local branch相同名字的branch。其中origin指定了你要push到哪个remote。