`

git related

 
阅读更多

1  see all detailed git info about single file

git log --pretty=oneline filename

 2 把git diff显示的变成文件(文件名字pp)

  git diff >pp

3查找git提交log中包含的key words

git log --grep='OTA' ./

 4 修改分支名

 git branch -m currentBranchName newname

5 提交到远程分支,新分支

  git push origin local_brach_name

6 本地初始化空git仓库

 git init 之后就可以git add 和commit了。

7在本地仓库添加一个远程仓库,并将本地的master分支push到远程

git remote add origin ssh://ip_address ~/xxx/.git
git push origin master

 

 8 git apply: trailing whitespace.

Git预先设置了一些选项来探测和修正空白问题,其4种主要选项中的2个默认被打开,另2个被关闭,你可以自由地打开或关闭它们。

默认被打开的2个选项是trailing-spacespace-before-tabtrailing-space会查找每行结尾的空格,space-before-tab会查找每行开头的制表符前的空格。

http://blog.csdn.net/shuyong1999/article/details/7185041

http://openwares.net/linux/git_diff_git_apply_patch.html

http://agile-boy.iteye.com/blog/274366

 

9 git remote rm origin 删除远程分支

   git remote -v 查看远程有几个分支

10 git rm -r foldername 删除文件夹

 

分享到:
评论

相关推荐

    Android代码-RadioBeacon

    About Main repository for the openbmap client 'Radiobeacon' ...Related projects openbmap Unified Network Location Provider Uses the openbmap dataset for cell and wifi based geo-location https

    pragmatic guide to git

    The right-hand page contains commands that focus on the task at hand, and cross references to other tasks that are related. You'll find what you need fast. Git is rapidly becoming the de-facto ...

    Git Recipes

    Whether you’re relatively new to git or you need a refresher, or if you just need a quick, handy reference for common tasks ...People who need a quick, practical reference for everything related to Git.

    对基于Git的版本控制服务的通用攻击面的探索.pdf

    Agenda Goal:Introdice general classes of attacks on Git-Bases services Git and Git-based ...A semi-automated way to discover Git-related bugs Exploits of these vulnerabilities Conclusion & Remediation

    Android代码-maven-git-commit-id-plugin

    maven git commit id plugin ... For those who don't know the previous plugins, it basically helps you to help you with the following tasks and answer related questions Which version had

    Git Version Control Cookbook 2nd Edition

    Git Version Control Cookbook builds on the success of the previous edition and provides you with an up-to-date guide to solving problems related to versioning. You’ll start by learning about the ...

    Git Pocket Guide.pdf

    Any body of related files evolving over time, which we’ll call a “project,” is a candidate for using Git. With Git, you can: • Examine the state of your project at earlier points in time • Show ...

    git命令参考pdf

    Git is the free and open source distributed version ...related that happens locally on your computer. This cheat sheet features the most important and commonly used Git commands for easy reference.

    git2graph:从线性 git 历史生成一个 git 图结构

    { " id " : " 1 " , " parents " : [ " 3 " ], " non_related_attr " : " non_related_value " }, { " id " : " 2 " , " parents " : [ " 3 " ]}, { " id " : " 3 " , " parents " : []} ] 并返回一个表示 git ...

    Atom-atom-better-git-blame,atom git将pull请求、相关问题和年龄颜色归咎于gutter.zip

    Atom-atom-better-git-blame.zip,Atom git blame gutter with pull requests, related issues, and age color-coding of code.更好的git责备atom包,atom是一个用web技术构建的开源文本编辑器。

    kirby3-related:根据给定字段中的匹配值获取相关页面文件

    柯比相关 Kirby 3 Related是一个插件,可让您根据给定字段中的匹配值来...$ git submodule add https://github.com/texnixe/kirby3-related.git site/plugins/kirby-related $ git submodule update --init --recurs

    smartgit 19.1.5 windows 安装包

    - opening a freshly cloned shallow repository failed if a commit listed in .git/shallow was not present in the repository - GitHub: query was not tolerant in case of missing parent repositories - ...

    EGit用户指南

    3.15.11 Showing Repository in Related Views 3.15.11.1 Show in History 3.15.11.2 Show in Reflog 3.15.11.3 Show in Properties 3.16 Working with Tasks 3.16.1 Installation 3.16.2 Commit Message ...

    Linux for Developers

    Understand Linux features related to building C, C++, and Java programs Stay on top of complex projects with GIT revision control Work in GIT: staging, committing, branches, diffs, merges, and ...

    leetcode中国-star-repos:星宿

    git技巧 android related android实用util android学习笔记 android的开源project python related 12306 Python programs to practice or demonstrate skills. js related html5动画那本书 js实现的数据结构与算法 ...

    Linux for Developers: Jumpstart Your Linux Programming Skills

    Understand Linux features related to building C, C++, and Java programs Stay on top of complex projects with GIT revision control Work in GIT: staging, committing, branches, diffs, merges, and patches...

    croxy_relatedItems:显示零售商品的模块

    克隆仓库git clone https://github.com/christina003/tripsters_reviews.git 安装NPM软件包npm install 编译文件npm run build 种子蒙戈数据库npm run db:setup 启动服务器npm start 接触 项目链接: ...

    contiv.github.io:Contiv网站源代码-git source code

    +- websrc: makefile, gemfile, and other build related files +- helpers: helper scripts used for compiling the website +- source: root directory for all html template files. `inde

    node-sciencebase:USGS 科学基础 API 客户端

    节点科学库 USGS 科学基础 API 安装 $ git clone git@github....// List all catalog items related to "water" var searchQuery = { q = "water" } ; // Callback Style sbClient ( options ) . search ( searchQuer

    rust-optee-trustzone-sdk:Rust OP-TEE TrustZone SDK:支持Trustlet的安全,功能和人体工程学开发

    Rust OP-TEE TrustZone SDK ... # clone the project and initialize related submodules $ git clone git@github.com:sccommunity/rust-optee-trustzone-sdk.git $ cd rust-optee-trustzone-sdk $ git su

Global site tag (gtag.js) - Google Analytics