php网站发送邮件,wordpress 访问密码忘记,怎样在网上卖东西,上线了做的网站怎么办很多大厂#xff08;华为、荣耀#xff09;的大型项目都有gerrit代码审查流程#xff0c;那么我们如何实现不手动敲命令行#xff0c;就在Android Studio中像平常开发一样#xff0c;只需要用鼠标点点点#xff0c;就能将代码推送到gerrit审查仓呢#xff0c;现在就来跟…很多大厂华为、荣耀的大型项目都有gerrit代码审查流程那么我们如何实现不手动敲命令行就在Android Studio中像平常开发一样只需要用鼠标点点点就能将代码推送到gerrit审查仓呢现在就来跟我操作吧。
-------------------正文-------------------- 需要修改的文件.git\config
config文件修改前
[core]repositoryformatversion 0filemode falsebare falselogallrefupdates truesymlinks falseignorecase true
[remote origin]url http://mgit-tm.ipd.hihonor.com/huawei/hap/HwParentControlfetch refs/heads/*:refs/remotes/origin/*
[branch honor_master_APK]remote originmerge refs/heads/honor_master_APK
在[remote “origin”]的fetch下方添加如下内容
push refs/heads/*:refs/for/*config文件修改后
[core]repositoryformatversion 0filemode falsebare falselogallrefupdates truesymlinks falseignorecase true
[remote origin]url http://mgit-tm.ipd.hihonor.com/huawei/hap/HwParentControlfetch refs/heads/*:refs/remotes/origin/*push refs/heads/*:refs/for/*
[branch honor_master_APK]remote originmerge refs/heads/honor_master_APK
配置修改完成后按正常的开发那样修改代码在Android Studio左侧Commit窗口的changes列表中选择要push的文件然后点击Commit and Push…按钮push完成后在界面下方Git的Console中就能看到打印的push操作返回的gerrit地址。
注意 使用Android Studio的push功能有时为何要点击两次Commit and Push…按钮第一次会失败第二次才会成功为什么第一次会失败呢因为在Commit and Push…按钮右侧的配置按钮齿轮图标中默认勾选了Analyze code和Check TODO推送选项需要取消Analyze code前面的勾选才能一次push成功