组织介绍

linux下代码拉取

拉取代码仓配置

ssh方式:(需要配置公钥)
repo init -u git@gitee.com:openharmony_audio/manifest.git -b audio_2022_dev -m audio.xml --no-repo-verify

http方式:(可配置保存密码后免密拉取)
repo init -u https://gitee.com/openharmony_audio/manifest.git -b audio_2022_dev -m audio.xml --no-repo-verify

下载代码

repo sync -c;repo forall -c 'git lfs pull'

切换到audio_2022_dev分支

repo forall -c "git checkout audio_2022_dev"

windows下代码拉取

暂不支持全量拉取

单仓代码提交

拉取代码

http方式(需输入密码)

ssh方式(配置公钥不需要输入密码)

  • ssh-keygen -t ed25519 -C "xxxxx@xxx.com"

    按照提示完成三次回车,即可生成 ssh key

  • cat ~/.ssh/id_ed25519.pub

    复制生成后的 ssh key,通过仓库主页 「管理」->「部署公钥管理」->「添加部署公钥」 ,添加生成的 public key 添加到仓库中。

  • git clone git@gitee.com:openharmony_audio/xxxx.git

默认拉取为audio_2022_dev分支,如需切换到其他分支使用 git checkout xxx

git 配置

配置用户名和邮箱
  • git config --global user.name "xxxxx"

  • git config --global user.email "xxxxx@huawei@com"

其它常用配置
  • git config --global core.editor vim ---配置commit编辑器为vim

  • git config --global credential.helper store ---配置http方式保存密码

  • git config --global core.autocrlf true ---配置换行风格为自动模式

  • git config --global core.filemode false ---配置忽略文件权限修改

代码提交

初次提交
  • git add .

  • git commit -sm "name:yourname xxx"

    例:git commit -sm "name:yanchenyang fix build failed"

  • git push origin HEAD:audio_2022_dev

未合入状态追加提交
  • git fetch

  • git checkout auto-xxx (注:auto-xxx为初次提交PR的临时分支名称)

    例:git checkout auto-8454783-audio_2022_dev-1656051455334

  • git add .

  • git commit --amend --no-edit

  • git push -f

远程合入后同步到本地
  • git checkout audio_2022_dev

  • git pull --rebase

再次新提交

重复以上流程

备注

无需fork该仓

无需创建PR

更新编译基线

rsync -vazrtopg -P --delete 10.61.196.113::giteeCodeShare/OpenHarmony_Standard_System ./

更新私仓基线

ln -s .repo/manifests/async_master.sh async_master.sh

成就
0
Star
2.5K
Fork
成员(4)
8454783 cyyanl 1655442284
cyyanl
weiliang
李伟明
AllenRiemann

搜索帮助

D67c1975 1850385 1daf7b77 1850385