`

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

    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

    django python taggit_python_django_

    tag = models.ForeignKey(CustomTag, on_delete=models.CASCADE, related_name="tagged_items") class Meta: verbose_name = "Custom Tagged Item" verbose_name_plural = "Custom Tagged Items" ``` 然后在...

    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 ...

    Android在git上的所有源码

    3. **平台相关代码 (Platform-related Code)** - **`platform/bionic`**:Android运行时环境,提供了轻量级的C/C++库。 - **`platform/bootable/*`**:启动相关的代码,包括`recovery`(恢复模式)、`...

    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 - ...

    Agile related resources

    在“Agile related resources”这个主题中,我们可以探讨以下几个关键的知识点: 1. 敏捷宣言(Agile Manifesto) 敏捷宣言是敏捷开发的基础,由17位业界专家在2001年提出。宣言中列出了4个核心价值观和12条原则,...

    research_info_related_notes

    此外,版本控制工具如Git,协同编辑工具如Overleaf,以及 BibTeX或BibLaTeX(用于管理参考文献)也可能与这个压缩包有关。学习如何将这些工具与TeX结合使用,可以极大地提升科研工作者的效率。 总的来说,"research...

    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 接触 项目链接: ...

    reddit-related:与Reddit相关的Subreddit

    具体到压缩包文件名“reddit-related-master”,这通常表示这是一个Git仓库的主分支,很可能包含了项目的源代码、数据文件、README文档和其他相关资源。用户可能需要使用Git来克隆或下载这个仓库,然后在本地环境中...

    mirror-related-news-api

    Docker可能用于容器化部署,确保环境一致性,而Git可能是版本控制工具,便于团队协作和代码版本管理。 综上所述,"mirror-related-news-api"是一个综合了多种技术和方法的复杂系统,它涉及到Python编程、API设计、...

Global site tag (gtag.js) - Google Analytics