git相关

1. git checkout -t -b vdk  origin/vdk   创建和切换到新的vdk分支。
2. 建立本地分支和远程分支的关联关系
git branch --set-upstream-to=origin/dev  dev
等价于git branch -u origin/dev dev
或者git branch -u origin/dev,默认本地当前分支

git branch -u origin/corsica_dpu_dev  corsica_dpu_dev

git branch -u origin/csub  csub

3. git log --author=sam.yu

COSSW-7135: optimize corsica-bos-n2 code
 
feat:     1. check lds memory size

Signed-off-by:  sam.yu <sam.yu@jaguarmicro.com>

COSSW-17626:【CSUB】【CMN700】PV TESTCASE of CMN700

feat:     1. add check lds memory size
 
Signed-off-by:  sam.yu <sam.yu@jaguarmicro.com>

GRLSW-1: Zephyr adapts to n2

feat: modify the function: hello and fix input string bug

Signed-off-by: Sam.Yu <sam.yu@jaguarmicro.com>

4. 解决原始仓库和fork仓库冲突的方法
https://blog.youkuaiyun.com/qq_53225741/article/details/125014571
下面方法来自zg
git remote add project_name ssh://git@bit.jaguarmicro.com:7999/jsp/cortex-bos-m7.git
git pull project_name(git fetch project_name:下载代码)
git merge  project/brance_nam

5. 修改fork仓库的commit信息 ,,,尽量只修改当前的这条信息,rebase尽量少用。
1. git rebase -i HEAD~2,修改pick为edit
2. git commit --amend
3. git rebase --continue
4. git pull
5. git push

6. stash
git stash save "xxx"
git stash list
git stash pop
git stash apply  stash@\{xxxx\}
git stash drop/git stash clear


git reset --soft HEAD~2
git push -f


git config --global user.name "sam.yu"
git config --global user.email "sam.yu@jaguarmicro.com"
ssh-keygen -t rsa -C "sam.yu@jaguarmicro.com"
cat ~/.ssh/id_rsa.pub

github国内镜像:
网址一:https://hub.nuaa.cf/
网站二:https://gitclone.com/
git config --global url."https://hub.nuaa.cf/".insteadOf "https://github.com/"

合并多条历史记录
git rebase -i HEAD~3
https://blog.youkuaiyun.com/qgccdd061313/article/details/133982965


git checkout 历史版本
回到最新的版本
git checkout csub
确保分支是最新的。
git pull origin csub

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值