美文网首页
git系列3-提交代码

git系列3-提交代码

作者: 蕴重Liu | 来源:发表于2019-07-10 09:40 被阅读0次

查看状态

lyq@DESKTOP-40030BI MINGW64 ~/workspace/CTFS-BS (feature-course)
$ git status
On branch feature-course
Your branch is ahead of 'origin/feature-course' by 157 commits.
  (use "git push" to publish your local commits)
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)
        modified:   .gitignore
no changes added to commit (use "git add" and/or "git commit -a")
(base)
lyq@DESKTOP-40030BI MINGW64 ~/workspace/CTFS-BS (feature-course)
$ git commit -am 'over user reset'

上传代码

lyq@DESKTOP-40030BI MINGW64 ~/workspace/CTFS-BS (feature-course)
$ git push origin feature-course
Enumerating objects: 97, done.
Counting objects: 100% (87/87), done.
Delta compression using up to 12 threads
Compressing objects: 100% (65/65), done.
Writing objects: 100% (65/65), 7.93 KiB | 1015.00 KiB/s, done.
Total 65 (delta 47), reused 0 (delta 0)
remote:
remote: To create a merge request for feature-course, visit:
remote:   http://192.168.1.202/CTFS_Group/CTFS-BS/merge_requests/new?merge_request%5Bsource_branch%5D=feature-course
remote:
To chain-gitlab:CTFS_Group/CTFS-BS.git
   8fdcaa2..80e4c54  feature-course -> feature-course
(base)
// 使用 -u 把本地的develop和远程的develop绑定后
lyq@DESKTOP-40030BI MINGW64 ~/workspace/CTFS-BS (develop)
$ git push

查看提交历史

lyq@DESKTOP-40030BI MINGW64 ~/workspace/CTFS-BS (feature-course)
$ git log
commit 80e4c54d14639e68b385552375b0510bfb3c9ae3 (HEAD -> feature-course, origin/feature-course)
Author: 刘小姐 <liuyunqing@chainbb.ai>
Date:   Thu Jul 4 18:12:14 2019 +0800
    over user reset
commit b2a6b8c66be435c7a9a6b5c2a4e66ad4a8f2ff68
Author: 刘小姐 <liuyunqing@chainbb.ai>
Date:   Thu Jul 4 18:10:49 2019 +0800
    over user reset
commit e0cc281d18ab08d3e8ce628e41726f230c306dce
Author: 刘小姐 <liuyunqing@chainbb.ai>
Date:   Thu Jul 4 16:11:15 2019 +0800
    still fix token
(base)
lyq@DESKTOP-40030BI MINGW64 ~/workspace/CTFS-BS (feature-course)
$

相关文章

  • git系列3-提交代码

    查看状态 上传代码 查看提交历史

  • Git 提交代码流程

    git提交代码流程 git pull———>修改代码———>git commit————>git pull——...

  • git 代码合并

    git 代码合并 git status 查看下当前代码状态,有需要提交的就提交,没用需要提交的就保持原样 git ...

  • git疑问记录解答

    问题系列: 1.在github上新建远程分支,然后git clone ,然后提交更新代码出现的问题 git新建测试...

  • git提交远程仓库脚本

    在开发过程中,我们在提交代码到远程仓库时,需要进行一系列git add, git commit,git pull,...

  • git 命令 提交更新代码

    //提交代码 1,git st//查看状态 2,git ci -a -m”描述”//提交代码 3,git co d...

  • git 常用的命令

    git status 检测状态 git add . 提交的代码显示 git commit -m "备注" 提交...

  • 日常用的git提交代码的方法

    日常用的git提交代码的方法 一、初始化本地仓库,提交代码,提交到远程git仓库 1、初始化代码仓库 git in...

  • git常用命令之提交

    git里面的提交代码和svn的提交代码有很大的区别,git的提交是把代码提交到本的仓储区,只有push之后,代码才...

  • 工作常用小技巧

    git命令 分支下提交个人代码 git add . (提交当前目录下代码) git commit -m 用户名 ...

网友评论

      本文标题:git系列3-提交代码

      本文链接:https://www.haomeiwen.com/subject/ytkckctx.html