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账号绑定 步骤 ...
随机推荐
- 【android】【android studio】修改emulator的本地化环境
Changing the emulator locale from the adb shell To change the locale in the emulator by using the ad ...
- 多本Python极速入门最佳书籍,不可错过的Python学习资料!
Python作为现在很热门的一门编程语言,介于Python的友好,许多的初学者都将其作为首选,为了帮助大家更好的学习Python,我筛选了2年内优秀的python书籍,个别经典的书籍扩展到5年内. ...
- 2018 Multi-University Training Contest 10 CSGO(HDU - 6435)(最远曼哈顿距离)
有 n 种主武器,m 种副武器.每种武器有一个基础分数k种属性值 X[i] . 选出一种主武器 mw 和一种副武器 sw,使得两种武器的分数和 + 每个属性的差值尽量大.(参考下面的式子) 多维的最远 ...
- win7 命令提示符怎么以管理员方式打开
点击屏幕最左下角的"开始"按钮,选择"运行"命令: 在弹出的"运行"对话框中输入"CMD"命令,再单击"确定& ...
- CSS动画小结
CSS动画 原理:1.画面之间变化 2.视觉暂留作用 常见问题 1.CSS 动画的实现方式有几种 1.transition 2. keyframes(animation) 2.过渡动画和关键帧动画 ...
- Python虚拟机中的一般表达式(三)
其他一般表达式 在前两章:Python虚拟机中的一般表达式(一).Python虚拟机中的一般表达式(二)中,我们介绍了Python虚拟机是怎样执行创建一个整数值对象.字符串对象.字典对象和列表对象.现 ...
- Python之PyFrameObject动态执行环境
Python虚拟机中的执行环境 Python的虚拟机实际上是在模拟操作系统运行可执行文件的过程,首先,我们先来讲一下普通的x86的机器上,可执行文件是以一种什么方式运行的. 图1-1 图1-1所展示的 ...
- css 阴影使用
文本阴影 p{ text-shadow: 5px 5px 5px #FF0000; } text-shadow: h-shadow v-shadow blur color; text-shadow: ...
- JS实现——用3L和5L量出4L的水
把以下代码保存成donglanguage.html文件,使用Google或360浏览器打开 <!DOCTYPE html> <html> <head> <me ...
- python + selenium - selenium简介
1. 产品简介 selenium 是 基于 web网页的UI自动化测试框架. 1)支持多浏览器操作:ie.chrome.firefox.edge.safaria等 2)跨平台:windows.linu ...