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'
repo forall -c "git checkout audio_2022_dev"
暂不支持全量拉取
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 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