-
下载分支代码:
git clone -b 分支名 http地址 -
再在本地创建一个分支:
项目文件夹右键选git bash
git checkout -b 分支名 -
查看本地分支:
git branch -
上传本地分支代码:
git add .
git commit -m 描述
git push -u origin 要推送的分支名 (远程会自动创建一个分支) -
在家拉取修改提交分支代码后,在公司本地仓库更新代码:
如果文件分支就是该分支,直接git pull -
git 改用户名:
参考:https://www.cnblogs.com/heqiyoujing/p/10722414.html
git config --global user.name “赵梦峤”
git config --global user.email “280675809@qq.com” -
无权限:(原因可能是修改密码导致)
https://blog.csdn.net/qq_42149698/article/details/85756023
控制面板>凭据管理器>windows凭据
https://blog.csdn.net/suheyin/article/details/86911579 -
git pull 时提示合并冲突
如下:$ git pull
error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work t
gitlab
最新推荐文章于 2024-02-06 12:27:37 发布