git user guide

1. git configuration in ".gitconfig":

[user]
        name = Haibing.Yang
        email = yanghb41@gmail.com
[color]
        ui = auto
[commit]
        template = /home/xxx/.commit_template
[remote "kernel"]
  url = ssh://yang.haibing@10.0.64.28:29418/kernel/common
  receivepack = git receive-pack --reviewer=yanghb41@gmail.com --cc=yanghb41@gmail.com
[remote "u-boot"]
  url = ssh://yang.haibing@10.0.64.28:29418/u-boot
  receivepack = git receive-pack --reviewer=yanghb41@gmail.com --cc=yanghb41@gmail.com
[core]
        editor = vim

git commit:

git commit -a -s -e

2. how to solve conflict

#git remote -v
kernel ssh://haibing.yang@10.0.64.28:29418/kernel/common (fetch)
kernel ssh://haibing.yang@10.0.64.28:29418/kernel/common (push)
korg gitadmin@gitsrv01.spreadtrum.com:android/kernel/common (fetch)
korg gitadmin@gitsrv01.spreadtrum.com:android/kernel/common (push)
u-boot ssh://haibing.yang@10.0.64.28:29418/u-boot (fetch)
u-boot ssh://haibing.yang@10.0.64.28:29418/u-boot (push)
# git fetch korg
# git rebase korg/sprdlinux3.10

If conflict happens, first, modify the conflict, then do the following:
# git add [conflicted files]
# git rebase --continue
# git push xxx HEAD:refs/for/branch

First, rewinding head to replay your work on top of it...
Fast-forwarded HEAD to korg/sprduboot.

If you encounter the above error, issue the following command
# git rebase master
Then issue 
# git rebase korg/sprduboot


3. create git server and git client

3.1 create git server
# git init --bare present.git

3.2 create git client
# git init
# git clone /work/robbie/smartphone_work/mydroid/present.git/
# git add ...
# git commit .-m "initial code"
版本控制系统(VCS)是一种用于跟踪和管理软件开发过程中的代码更改的工具。用户指南(User Guide)提供了使用VCS的详细说明和指导,以帮助开发人员正确地使用版本控制系统。以下是关于用户指南VCS的一些重要信息: 1.介绍和概述:用户指南通常会开始介绍VCS的基本概念和作用,包括版本控制的重要性和好处。它还可能提供有关常见VCS的概述,如Git、SVN等。 2.安装和配置:用户指南会提供关于如何安装和配置VCS的详细步骤和说明。这可能包括下载和安装所需的软件包、设置程序和配置文件等。 3.基本操作:用户指南会解释VCS的基本操作,如如何创建和克隆存储库、如何提交和检出代码、如何创建和切换分支等。这些说明通常会使用示例和图表来帮助用户理解。 4.高级功能:用户指南可能还会涉及一些高级功能和技巧,以帮助用户更有效地使用VCS。这可能包括合并代码、解决冲突、回滚更改、查看提交历史等操作。 5.协作和团队工作:用户指南还可能包括关于如何在团队中使用VCS进行协作开发的指导。这可能涉及到分支管理、代码审查、团队工作流程等方面的说明。 6.故障排除:用户指南通常还会包含一些常见问题和故障排除的指导,以帮助用户解决遇到的问题。这可能涉及到错误消息的解读、日志文件的分析等。 用户指南是VCS的一个重要资源,可以帮助开发人员更好地理解和使用版本控制系统。它提供了关于安装、配置、基本操作、高级功能、协作和故障排除等方面的详细说明和指导,是使用VCS的开发人员的重要参考。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值