git history 记录(上传到 issu-170 )
一.上传到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 )的更多相关文章
- 使用git将代码上传到GitHub
使用git将代码上传到GitHub 结束了前一段的时间的杂七杂八的生活,最近又快开始动一动已经吃了好长时间土的GitHub,以前的git指令基本上忘个差不多,现在记录一下,利用git将代码上传. ...
- Git学习笔记-上传一个新的项目到GitHub上
前提: 已有Github账号,已在Github上建立了仓库,已在Github上配置了SSH,已上传过一些项目到Github上 目标: 目前有一个新的项目,需要上传到github上 我的做法记录: 1. ...
- 使用Git将本地代码上传到GitHub
#1注册GitHub账号 *1)到https://github.com/注册GitHub账号 #2在GitHub上建立GitHub仓库 *1)登录后点击右下方的"new repository ...
- 使用git将项目上传到github
使用git将项目上传到github(最简单方法) 首先你需要一个github账号,所有还没有的话先去注册吧! https://github.com/ 我们使用git需要先安装git工具,这里给出下 ...
- 用Git向gitHub上传项目
用Git向gitHub上传项目 1.安装git 2.在git安装目录下,运行git-bash.exe 如图所示 3.在git中绑定你注册gitHub是的用户名.邮箱. $ git config -- ...
- 利用git将项目上传到github
本文主要介绍如果用git将项目上传到githup. 一.准备工作 (1)欲将项目上传到githup,先在githup上新建一个仓库.这里就不介绍. (2 ...
- django之创建第10-1个项目-图片上传并记录上传时间
1.百度云盘:django之创建第10-1个项目-图片上传并记录上传时间 2.主要修改的配置文件有3个,forms.views和models3个文件以及html 3.forms.py文件修改 #cod ...
- Git 使用篇一:初步使用GitHub,下载安装git,并上传项目
首先在MAC上怎么操作. 在gitHub创立一个账户,在创立一个项目,这就不用我说了对吧. 创建完之后是这样的: 接下来,我们打开https://brew.sh 这是下载homebrew的网站,hom ...
- git之项目上传
git之项目上传 需求:将项目代码上传至github 前期准备: 1.github账号注册 2.安装git环境,可以打开且使用git shell. 3.生成SSH key并与github账号绑定 步骤 ...
随机推荐
- java上传附件,批量下载附件(一)
上传附件代码:借助commons-fileupload-1.2.jar package com.str; import java.io.BufferedInputStream;import java. ...
- Applied Nonparametric Statistics-lec6
Ref: https://onlinecourses.science.psu.edu/stat464/print/book/export/html/8 前面都是对一两个样本的检查,现在考虑k个样本的情 ...
- Java并发编程的艺术 记录(三)
Java内存模型 并发编程的两个关键问题: 1.线程之间如何通讯. 2.线程间如何同步. 两种方式:共享内存和消息传递. Java的并发采用的是共享内存模型,Java线程之间的通信总是隐式进行,整个通 ...
- stm32之PWM学习
下图是一个STM32普通PWM形成的图形原理说明 自动重装载寄存器(ARR)用于确定波形的频率(即周期).捕获比较寄存器(CCRx)(用于确定占空比的) PWM的工作过程如下:首先ARR寄存器里面的值 ...
- react技术栈实践(2)
本文来自网易云社区 作者:汪洋 这时候还没完,又有两个问题引出来了. 按照上面的配置,第三方库 antd 竟然也被编译了,导致样式失败. react中,一旦包裹了子组件,子组件没办法直接使用 styl ...
- [POJ 1000] A+B Problem 经典水题 C++解题报告 JAVA解题报告
A+B Problem Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 311263 Accepted: 1713 ...
- 【转】基于 Apache 在本地配置多个虚拟主机
如何使用 Apache 在本地配置出多个虚拟主机呢?而且使用不同的“域名”来访问本地不同的站点呢? 一般情况下,咱们都使用 localhost 来访问本机上的服务器,在我们的 C:/WINDOWS/s ...
- PHP define() 定义常量
PHP define()函数定义了运行时的常量, 具体语法如下所示: (PHP 4, PHP 5, PHP 7) define — Defines a named constant bool defi ...
- VMware RHEL6.3 开启网络连接
确认/etc/sysconfig/network是否存在,如果不存在,service network 命令使用不了.新建: NETWORKING=yes HOSTNAME=RHEL6. GATEWAY ...
- javascript学习笔记 - 变量、作用域和内存问题
一 垃圾收集 javascript具有自动垃圾收集机制.由垃圾收集机制标找出不再使用的变量.按照固定间隔的时间进行销毁,释放内存. 1.找出不再使用的变量的方法,如下: 1-1.标记清除 垃圾回收器 ...