Board logo

标题: 有用的git建议(2) [打印本页]

作者: look_w    时间: 2018-12-15 13:54     标题: 有用的git建议(2)

暂存区管理Stashed & BranchesStashBranch# Go to the `master` branchgit checkout master# Create a temp branchgit checkout -b temp# Merge the feature/x branch into the temp using --squashgit merge feature/x --squash# See the new modifications/files in the Staging Areagit status# Create the unified commitgit commit -m "Add feature/x"# Delete the feature/x branchgit branch -D feature/x




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0