![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git学习&使用
文章平均质量分 84
Slowly__Run
这个作者很懒,什么都没留下…
展开
-
Git学习记录-推送至远程仓库&从远程仓库获取(三)
推送至远程仓库 首先在github上创建不带README的代码仓库 添加远程仓库 git remote add origin https://github.com/用户名/仓库名.git 修改远程仓库源 git remote rm origin 推送至远程仓库 推送至master分支 git push -u origin master -u参数,在推送的同时,将origin仓库的master分支...原创 2020-05-07 21:46:12 · 144 阅读 · 0 评论 -
Git学习记录-分支&更改提交(二)
分支 显示分支一览表 git branch *表示当前我们所处的分支 创建&切换分支 git checkout -b 切换到feature-A分支,并进行提交 git checkout -b feature-A 该语句等同于如下两条命令: 1.git branch feature-A 2.git checkout feature-A 在分支feature-A中修改文件,采用如下的方式,...原创 2020-05-05 23:18:00 · 196 阅读 · 0 评论 -
git学习记录-基本操作(一)
git学习记录 操作系统 ubuntu18.04 安装git sudo apt-get install git git的初始配置 -设置姓名:git config --global user.name “Firstname Lastname” -设置邮箱:git config --global user.email “your_email@example.com” ...原创 2020-05-04 22:13:23 · 142 阅读 · 0 评论