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账号绑定 步骤 ...
随机推荐
- python基本数据类型和简单用法
一.int 整形范围 How Big Is an int? In Python2, the size of an int was limited to 32 bits, which is enough ...
- 这五本Python急速入门必读的书,送给正在学习Python的你!
书籍是人类进步的阶梯,这句话从古至今都是适用的.为什么会这么说呢?书籍,它记录了人们实践的经验,这些经验有助于我们快速的学习,对于编程学习来说也不例外,今天就给大家带来了以下的书籍干货,希望能够帮助到 ...
- SQL防止重复提交和Filter
/class User package com.neuedu.bean; import java.io.Serializable; public class User implements Seria ...
- (转)JVM各种内存溢出是否产生dump
对于java的内存溢出,如果配置-XX:+HeapDumpOnOutOfMemoryError,很明确的知道堆内存溢出时会生成dump文件.但永久代内存溢出不明确是否会生成,今天来做一个实验: 永久代 ...
- jmeter jdbc各字段的含义
JDBC采样器各选项的含义如下: 1.Variable Name 其中的Variable Name和上面JDBC Connection Configuration中的Variable Name相同,这 ...
- php-数据库连接类
<?php class DB{ var $host; var $user; var $pwd; var $dbname; var $conn; function DB($host,$user,$ ...
- luogu2293 [JSOI2008]Blue Mary开公司
ref好像叫什么李超线段树?--这篇不是太通用-- #include <iostream> #include <cstdio> #include <cmath> u ...
- kruskal - 倍增 - 并查集 - Luogu 1967 货车运输
P1967 货车运输 题目描述 A 国有 n 座城市,编号从 1 到 n,城市之间有 m 条双向道路.每一条道路对车辆都有重量限制,简称限重.现在有 q 辆货车在运输货物, 司机们想知道每辆车在不超过 ...
- 学习boundingRectWithSize:options:attributes:context:计算文本尺寸
oundingRectWithSize:options:context: 返回文本绘制所占据的矩形空间. - (CGRect)boundingRectWithSize:(CGSize)size opt ...
- iOS学习笔记01-APP相关
AppDelegate对象方法 # 程序第一次启动后才会执行 - (BOOL)application:(UIApplication *)application didFinishLaunchingWi ...