快捷搜索:  汽车  科技

git怎么创建属于自己的分支?创建自己分支流程

git怎么创建属于自己的分支?创建自己分支流程git push --set-upstream origin feature/bed_request_agit commit -m '新的提交'git branch 查看本地分支git branch -a 查看远程分支git add .

首先肯定是git clone当前仓库链接

当然也可以用工具

git branch feature/bed_request_a

git checkout feature/bed_request_a

git branch 查看本地分支

git branch -a 查看远程分支

git add .

git commit -m '新的提交'

git push --set-upstream origin feature/bed_request_a

rebase dev的操作

git checkout dev

git pull

git怎么创建属于自己的分支?创建自己分支流程(1)

//切回当前分支

git checkout feature/add_message_prompt_upadte_outbound

git rebase dev

git rebase --continue

git add .

git rebase --continue

1.在gitlab创一个仓库

git clone git@git.owoit.com:jcq/jjr_lfstc_yq.git

2.cd 进去那个目录

cd jjr_lfstc_yq

3.进这个目录

git branch

git checkout -b develop

git pull origin develop

git branch -al

git pull origin develop

git branch -vv

git pull origin develop

git status

git add .

git commit -m "......."

git push origin develop

git push --set-upstream origin develop

创h5release分支

git checkout -b release

git branch -al

git branch -vv

git status

git add .

git commit -m "......."

git push origin release

git push --set-upstream origin release

切换分支

在c盘user/15847/.ssh 创建id_rsa,id_rsa.pub

gitlab 第一次拉取代码

git config --global user.name 'jQuery446'

git config --global user.email '1584751391@qq.com'

ssh-keygen -t rsa -C '1584751391@qq.com'

clone ssh

猜您喜欢: