We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vim ~/.gitconfig
[user] name = Your Name email = example@example.com [alias] mt = "!gitmergeto() { git pull && export tmp_branch=`git branch | grep '* ' | tr -d '* '` && git checkout $1 && git pull && git merge $tmp_branch --no-edit && git push && git checkout $tmp_branch; unset tmp_branch; }; gitmergeto"
然后就可以使用 git mt master 将当前分支合并到 master 并 push 再切换回当前分支,如果遇到了合并冲突,则会保留在 master 分支上处理。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
vim ~/.gitconfig
然后就可以使用 git mt master 将当前分支合并到 master 并 push 再切换回当前分支,如果遇到了合并冲突,则会保留在 master 分支上处理。
The text was updated successfully, but these errors were encountered: