# git ls-files –others –exclude-from=.git/info/exclude # Lines that start with ‘#’ are comments. # For a project mostly in C, the following would be a good set of # exclude patterns (uncomment them if you want to use them): *.[oa]
*.obj
*.tmp
*.bak
#*~
先右键本地项目代码文件夹,create rep…,之后记得修改.git/info下的exclude文件,去除不要上传的文件,之后再右键项目文件夹,Commit,注意第一次时不要选amend last …,选择要提交的文件,并注释,之后再右键项目文件夹,TortoiseGit->push,在Destination的 manage中填入在github上建立的对应项目信息。
本文基于 署名 2.5 中国大陆 许可协议发布,欢迎转载、演绎,但是必须保留本文的署名 John 并包含本文链接。