# Qt_CPP **Repository Path**: dstoned/qt_cpp ## Basic Information - **Project Name**: Qt_CPP - **Description**: 这是一个Qt的学习仓库,使用Qt Creator和Vs 2015完成代码编辑工作,学习资料来源于Qt 5.9 C++开发指南(王维波等著),Qt官方网站学习材料,以及网络,所有参考资料来源都会以参考文献的形式列出,供大家共同学习探讨,请合理使用,侵权之处请联系删除。 - **Primary Language**: C++ - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2022-01-22 - **Last Updated**: 2022-11-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: Qt, Cpp, 编程笔记 ## README # 这是一个开发备忘录 # Git 操作说明 查看仓库分支 ~~~ git btanch // 查看本地分支 git branch -r // 查看远程分支 git branch -a // 查看所有分支 ~~~ 新建分支 ~~~ git branch [branch_name] // 新建一个分支 git checkout [branch_name] // 切换到指定分支 git branch -b [branch_name] // 新建一个分支,并切换到新建的分支上 // 将本地分支推送到远程分支上,如果远程分支不存在的话,会在远程新建一个分支,即可完成在远程新建分支的操作 git push origin [local_branch_name]:[remote_branch_name] ~~~ 同步代码 ~~~ git pull // 默认为 origin master git pull origin [remote_branch_name] ~~~ 合并分支 ~~~ // 将指定分支合并到当前分支上 git merge [branch_name] // 远程分支的合并,其实是将远程分支pull到本地 // 然后按照本地分支的合并方法合并后 // 在push到远程分支即可 ~~~ 删除分支 ~~~ // 删除本地指定分支,删除的分支不能是正在操作的分支 // 当分支包含了未合并、未推送的分支时,不能删除 git branch -d [branch_name] // 强制删除本地分支 --delete --force git branch -D [branch_name] // 删除远程分支 git push origin -d [remote_branch_name] // 通过推送一个空的分支到远程分支的方式删除远程分支 git push origin :[remote_branch_name] ~~~ // 查看分支之间的关系图 ~~~ // 使用git log 命令 git log --graph --decorate --oneline --simplify-by-decoration --all // 使用gitk工具 gitk --simplify-by-decoration // 使用gitk命令时可能出现中文乱码,需修改编码方式 // 在全局范围内将gui编码方式设置为utf-8 git config --global gui.encoding utf-8 ~~~ gitignore相关说明 ~~~ gitignore文件集合:https://github.com/github/gitignore // 使用了Qt默认的gitignore文件会导致界面的相关文件没有办法上传 // 在实际使用中,需要对gitignore文件做一定的调整,来满足项目需求 ~~~ ## 参考文献 1. 程序中所使用的图片来源于异步图书(https://www.epubit.com/) 2. https://learngitbranching.js.org/?locale=zh_CN 3. https://www.cnblogs.com/chjbbs/p/6385357.html 4. https://blog.csdn.net/u014132720/article/details/51471630 5. https://blog.csdn.net/demonliuhui/article/details/78510678