做网站是先做界面还是先做后台,象山区网站建设,网站开发长期合作,wordpress 404 not found一、Git命令#xff08;不嫌麻烦可以使用Github桌面应用#xff09; git clone []
cd []
git branch -vv #查看本地对应远程的分支对应关系
git branch -a #查看本地和远程所有分支
git checkout -b [hongyuan] #以当前的本地分支作为基础新建一个【】分支,命名为h…一、Git命令不嫌麻烦可以使用Github桌面应用 git clone []
cd []
git branch -vv #查看本地对应远程的分支对应关系
git branch -a #查看本地和远程所有分支
git checkout -b [hongyuan] #以当前的本地分支作为基础新建一个【】分支,命名为hongyuan
git branch --set-upstream-toorigin/[hongyuan] #将本地分支与远程【hongyuan】分支进行关联形成关联关系,命名为hongyuan
省略修改代码部分
git status #本地修改代码保存后查看修改状态
git diff #查看修改了啥代码git add . #将本地代码全部放到缓存 准备提交
git commit -m 我的修改 # 本地的【hongyuan】变成了【我的修改】
git status #查看修改状态
git push #远程分支代码才会变之后需要在github的个人分支页面上pull request二、Github与本地仓库建立链接方法一 1 安装好git 2 github上建立新存储库 3 进入本地电脑 项目 文件夹下 右击点开 git bush 终端依次输入
git init
git add . #改动下
git commit -m first commit
git branch -M main
git remote add origin https://github.com/hongyuanbug/1.git
git push -u origin main三、Github与本地仓库建立链接方法二 1 进入Github桌面应用 2 点击