复合维生素b可以减肥吗:使用android系统的git-repo工具
来源:百度文库 编辑:偶看新闻 时间:2024/05/03 11:51:54
出处:http://blog.chinaunix.net/u1/38994/showart_2329621.html
一.创建跟踪分支创建跟踪分支,可以使用如下3种方式1.使用repo start2.使用git branch --track origin/master pool3.使用git checkout -b pool origin/master4.批量创建repo forall -c 'repo start pool .'(可以使用repo abandon pool删除分支)二.创建完跟踪分支之后,就可以直接同步merge远程代码到上面建立的比如pool跟踪分支了repo sync
三.使用如下脚本gd或gd2查看自己本地所有修改了的但还未push回reporsitory的内容---lgit_diff脚本-------------#!/bin/bashpath=$1
if [ $path ] && [ -d $path ] ; then cd $path [ $2 ] && name_only="--name-only"else [ $path ] && name_only="--name-only" && path=''fi
remote=`git remote`remote_name=`git branch -r | sed '/->/!d;s!.*/!!'`diffs=`git diff $remote/$remote_name --name-only`
if [ "$diffs" ]; then echo "==========================================" [ $path ] && echo $path [ "$name_only" = "" ] && echo# repo sync . git diff $remote/$remote_name $name_onlyfi
[ $path ] && cd - > /dev/null
---gd脚本-------------#!/bin/bash# repo syncrepo forall -c 'pwd' | xargs -l1 -I file lgit_diff file $1
---gd2脚本-------------#!/bin/bashrepo syncrepo forall -c 'pwd' | xargs -l1 -I file lgit_diff file $1
四.进入相应修改目录,直接git reset去掉无用的loggit reset hashidgit commit -am '写一些此次提交综合的说明文字'
五.使用如下脚本进行check in或者使用repo forall -c 'pwd' | xargs -l1 Sync2GitServerReporsitory统一提交多个变更的git库---Sync2GitServerReporsitory脚本-------------#!/bin/bashpath=$1[ $path ] && cd $path
remote=`git remote`remote_name=`git branch -r | sed '/->/!d;s!.*/!!'`local_name=`git branch | sed '/\*/!d;s/\*\ //'`
# We must Create a tracking branch, could use the following 3 ways# 1. repo start $remote_name .# 2. git branch --track origin/master pool# 3. git checkout -b pool origin/master# 4. 或者repo forall -c 'repo start pool .'批量创建
git pull $remote $remote_namegit push $remote $local_name:$remote_name
[ $path ] && cd - > /dev/null
radiohead 的 Paranoid Android 中文翻译
03年kame摔下舞台的repo
hot的<git it up>又叫什么?
总听龟梨和也的饭提到HEY3 REPO,是什么意思
acid android的menbers除了yuki外谁可以给我介绍一下?
哪里可以下到acid android的歌恳求拜托了我要疯了!!!!
paranoid android中文歌词
怎样将GIT格式设置成屏保
网吧计费系统的使用
win2000系统的使用权限
电脑系统的使用问题
股票网上交易系统的使用.
系统使用的问题!救命!
l10的系统恢复盘的使用
Moto E398使用的是什么系统(平台)?
如果使用系统的快捷菜单?
电台使用的什么短信系统?
XP系统的补丁怎么使用?
微机系统使用的打印机有哪几种?
firefox使用的问题 电脑系统
怎么样使用LINUX的MAIL系统
求救WINPE系统 使用的问题
有使用设备管理系统的吗?
超市所使用的RAMS系统是什么?