
git
gao_sl
缺乏勇气的人生不够完美
展开
-
温习下git同步本地代码至远程仓库
6、git push -u origin master 推送本地仓库中的master分支到远程仓库origin的master分支,-u保存推送信息。5、git commit -m "Initial commit"提交暂存区文件至本地仓库。3、git remote add origin ssh(远程origin路径)1、远程git仓库或者云效服务创建服务名生产 ssh代码路径。2、进入本地项目文件夹git init 初始化git仓库。4、git add . 添加当前文件至暂存区。原创 2023-09-01 17:31:54 · 194 阅读 · 0 评论 -
git指令速查表
原创 2018-05-15 17:32:40 · 150 阅读 · 0 评论 -
git命令合master和其他分支代码
模拟场景step1step2step3模拟场景现在有两个分支master(主分支)和other,你在other分支上开发代码了,现在想将other分支合并到master。项目有可能有很多的分支,例如项目分支master、other、other1、other2等分支都需要将代码合并到master上的,进行发布上线。step1分别切换到other、master拉取最新代码git pull1step2...转载 2018-06-02 14:28:56 · 1684 阅读 · 0 评论