一.上传到gitlab

本地issu-170落后git很多,发生冲突的要手动修改.

2000 cd robot_demo_0226_ws/
2001 ls
2002 cd IGV01-SW-170
2003 ls
2004 git fetch
2005 git add --all
2006 git status
2007 git pull
2008 git commit
2009 git merge
2010 git merge origin/master
2011 git mergetool
2012 git status
2013 git add --all
2014 git commit
2015 git push
2016 git pull

二.git命令简析

git fetch:将远程的更新取回到本地(但不合并(merge))
git fetch origin master

$ git checkout -b newBrach origin/master
上面命令表示,在origin/master的基础上,创建一个新分支。

git merge:在本地分支上合并远程分支
git merge origin/master
在当前分支上,合并origin/master。

git add:主要用于把要提交的文件的信息添加到索引库中。当我们使用git commit时,git将依据索引库中的内容来进行文件的提交
git commit: 将本地修改保存到本地仓库中
git push: 将本地仓库修改推送到服务器上的仓库中

$ git branch -r:查看远程分支
$ git branch -a:查看所有分支

git status:列出当前目录所有还没有被git管理的文件和被git管理且被修改但还未提交(git commit)的文件.
git diff:查看文件修改之处, 如:git diff readme.txt

git pull = git fetch + git merge

1954 cd /home/wang/aaaaaa
1955 ls
1956 cd IGV01-SW/
1957 ls
1958 git status
1959 ls
1960 ls -a
1961 cd .git/
1962 ls
1963 cd ..
1964 ls
1965 git status
1966 cd ~
1967 cd aaaaaa/
1968 cd IGV01-SW/
1969 git status
1970 git fetch
1971 git merge origin/193-automatic-description
1972 git status
1973 git merge origin/master
1974 git checkout bzrobot_diagnostics/bzrobot_status_monitor/LogWarn/2016-03-05-WarnLog.txt
1975 git bzrobot_task_management/bzrobot_proxy_task/generate_dep_libs.cmake
1976 git checkout bzrobot_task_management/bzrobot_proxy_task/generate_dep_libs.cmake
1977 git checkout bzrobot_task_management/bzrobot_task/generate_dep_libs.cmake
1978 git checkout bzrobot_task_management/bzrobot_task/task_scripts/combo_task_agv.script
1979 git merge
1980 git merge origin/master
1981 cat ./bzrobot_user_interface/bzrobot_joy_teleop/bzrobot_joy_teleop/src/joy_teleop.cpp
1982 git commit
1983 git add --all
1984 git commit
1985 git push
1986 git status
1987 git fetch
1988 git status
1989 git checkout -b 195-issue origin/HEAD
1990 git commit
1991 git status
1992 git add --all
1993 git commit
1994 git push
1995 git push --help
1996 git push origin 195-issue
1997 git status
1998 cat ./bzrobot_user_interface/
1999 cat ./bzrobot_user_interface/bzrobot_joy_teleop/bzrobot_joy_teleop/src/joy_teleop.cpp
2000 ls
2001 cd aaaaaa/
2002 ls
2003 cd IGV01-SW/
2004 ls
2005 git fetch
2006 git checkout 195-issue
2007 git checkout -f 195-issue
2008 cat ./bzrobot_user_interface/bzrobot_joy_teleop/bzrobot_joy_teleop/src/joy_teleop.cpp
2009 cd ..
2010 ls
2011 cd IGV01-SW/
2012 ls
2013 git fetch
2014 git checkout origin/195-issue
2015 git checkout bzrobot_diagnostics/bzrobot_status_monitor/LogWarn/2016-03-05-WarnLog.txt
2016 bzrobot_task_management/bzrobot_proxy_task/generate_dep_libs.cmake
2017 bzrobot_task_management/bzrobot_task/generate_dep_libs.cmake
2018 bzrobot_task_management/bzrobot_task/task_scripts/combo_task_agv.script
2019 git checkout bzrobot_task_management/bzrobot_proxy_task/generate_dep_libs.cmake
2020 git checkout bzrobot_task_management/bzrobot_task/task_scripts/combo_task_agv.script
2021 git add --all
2022 git commit
2023 git checkout origin/193-automatic-description
2024 git checkout bzrobot_diagnostics/bzrobot_status_monitor/LogWarn/2016-03-08-WarnLog.txt
2025 git checkout bzrobot_diagnostics/bzrobot_status_monitor/LogWarn/2016-03-09-WarnLog.txt
2026 git commit
2027 cd ~
2028 cd aaaaaa/
2029 ls
2030 cd IGV01-SW/
2031 git fetch
2032 git checkout 193-automatic-description
2033 git commit
2034 git merge origin/193-automatic-description
2035 rm bzrobot_diagnostics/bzrobot_status_monitor/LogWarn/2016-03-08-WarnLog.txt
2036 rm bzrobot_diagnostics/bzrobot_status_monitor/LogWarn/2016-03-09-WarnLog.txt
2037 git merge origin/193-automatic-description
2038 git add --all
2039 git commit
2040 git commit --all
2041 git mergetool
2042 meld
2043 git merge
2044 git mergetool
2045 git status
2046 git checkout -b 193-automatic-description
2047 git status
2048 cat ./bzrobot_user_interface/bzrobot_joy_teleop/bzrobot_joy_teleop/src/joy_teleop.cpp
2049 git commit
2050 git add -all
2051 git add --all
2052 git commit
2053 git status
2054 git merge origin/193-automatic-description
2055 git mergetool
2056 git push
2057 git commit
2058 git push

git history 记录(上传到 issu-170 )的更多相关文章

  1. 使用git将代码上传到GitHub

    使用git将代码上传到GitHub   结束了前一段的时间的杂七杂八的生活,最近又快开始动一动已经吃了好长时间土的GitHub,以前的git指令基本上忘个差不多,现在记录一下,利用git将代码上传. ...

  2. Git学习笔记-上传一个新的项目到GitHub上

    前提: 已有Github账号,已在Github上建立了仓库,已在Github上配置了SSH,已上传过一些项目到Github上 目标: 目前有一个新的项目,需要上传到github上 我的做法记录: 1. ...

  3. 使用Git将本地代码上传到GitHub

    #1注册GitHub账号 *1)到https://github.com/注册GitHub账号 #2在GitHub上建立GitHub仓库 *1)登录后点击右下方的"new repository ...

  4. 使用git将项目上传到github

    使用git将项目上传到github(最简单方法)   首先你需要一个github账号,所有还没有的话先去注册吧! https://github.com/ 我们使用git需要先安装git工具,这里给出下 ...

  5. 用Git向gitHub上传项目

    用Git向gitHub上传项目 1.安装git 2.在git安装目录下,运行git-bash.exe  如图所示 3.在git中绑定你注册gitHub是的用户名.邮箱. $ git config -- ...

  6. 利用git将项目上传到github

            本文主要介绍如果用git将项目上传到githup. 一.准备工作         (1)欲将项目上传到githup,先在githup上新建一个仓库.这里就不介绍.         (2 ...

  7. django之创建第10-1个项目-图片上传并记录上传时间

    1.百度云盘:django之创建第10-1个项目-图片上传并记录上传时间 2.主要修改的配置文件有3个,forms.views和models3个文件以及html 3.forms.py文件修改 #cod ...

  8. Git 使用篇一:初步使用GitHub,下载安装git,并上传项目

    首先在MAC上怎么操作. 在gitHub创立一个账户,在创立一个项目,这就不用我说了对吧. 创建完之后是这样的: 接下来,我们打开https://brew.sh 这是下载homebrew的网站,hom ...

  9. git之项目上传

    git之项目上传 需求:将项目代码上传至github 前期准备: 1.github账号注册 2.安装git环境,可以打开且使用git shell. 3.生成SSH key并与github账号绑定 步骤 ...

随机推荐

  1. APP客户端图片上传PHP接口

    1.客户端 file_get_contents($_FILES['img']['tmp_name']) //获取临时目录下的上传文件流,加密传给接口   2.接口处理端 $img = file_get ...

  2. Python基础——集合(set)

    集合可以去除掉列表中重复的元素. 创建 list1=[123,123,456,789] list1=set(list1) list1 set1=set() type(set1) set1=set([1 ...

  3. POJ:1094-Sorting It All Out(拓扑排序经典题型)

    Sorting It All Out Time Limit: 1000MS Memory Limit: 10000K Description An ascending sorted sequence ...

  4. Mysql中的联合索引、前缀索引、覆盖索引

    索引 索引是一种特殊的文件,它们包含着对数据表里所有记录的引用指针.更通俗的说,数据库索引好比是一本书前面的目录,能加快数据库的查询速度. 联合索引 又名复合索引,由两个或多个列的索引.它规定了mys ...

  5. Linux学习-Linux的账号与群组

    使用者识别码: UID 与 GID Linux 主机并不会直接认识 你的"帐号名称"的,他仅认识 ID 啊 (ID 就是一组号码啦). 由于计算机仅认识 0 与 1,所 以主机对于 ...

  6. loj2275 「JXOI2017」颜色

    枚举右端点,然后看左端点合法情况. 先预处理每个颜色 \(i\) 的最大出现位置 \(max_i\) 和最小出现位置 \(min_i\).对于枚举右端点在一个位置 \(i\),凡是 \(max_k & ...

  7. css图像处理与动画

    先讨论几个css 问题 1,css 清除浮动的方法 2,css 居中 3,多行省略号 4,小布局技巧 2D 动画功能属性兼容性:transform.transition.animation trans ...

  8. 【JavaScript】关于 eval()执行JavaScript语句的一次实验测试

    实验主题: eval() 函数可以计算某个字符串,并执行其中的 JavaScript 代码.该函数只接受原始字符串作为参数,如果 string 不是原始字符串,那么该方法将不作任何的改变的返回.因此请 ...

  9. 博客笔记(blog notebook)

    1. 机器学习 2. NLP 3. code 实际好人 实际坏人 预测百分比 预测好人 \(p_GF^c(s_c\|G)\) \(p_BF^c(s_c\|B)\) \(F^c(s_c)\) 预测坏人 ...

  10. 利用ajax实现数据传输

    AJAX = Asynchronous JavaScript and XML(异步的 JavaScript 和 XML). AJAX 不是新的编程语言,而是一种使用现有标准的新方法. AJAX 是与服 ...