git套路

来源:互联网 发布:数据统计的软件 编辑:程序博客网 时间:2024/04/26 09:04

push代码到主线:


git add .

git commit -m "update comment"

git push origin HEAD:refs/for/trunk


git pull origin --rebase trunk



pull代码从远程仓库:

git pull origin refs/heads/trunk:trunk



cherry-pick套路:


git log -3;

git cherry-pick xxxxx

git commit --amend --no-edit

git push origin HEAD:refs/for/trunk


 

 

0 0
原创粉丝点击