zoukankan      html  css  js  c++  java
  • Android驱动开发前的准备(三)

    Git使用入门

    3.1安装Git

    3.2查看Git文档

    3.3源代码的提交与获取

    3.1安装Git

    # apt-get install git
    
    # apt-get install git-doc git-svn git-email git-gui gitk

    3.2查看Git文档

    # man git-checkout

    3.3源代码的提交与获取

    3.3.1创建版本库: git init

    # mkdir -p /demo/helloworld-git
    
    # cd /demo/helloworld-git
    
    # git init

    3.3.2将文件提交到本地版本库: git commit

    在holloworld-git目录下建立helloeorld.txt文件

    # cd /demo/holloworld-git
    
    # echo “helloworld”> helloeorld.txt

    将文件加到本地版本库的索引中,并提交到版本库

    # git add helloworld.txt
    
    # git commit -m ‘helloworld-master’

    3.3.3 创建本地分支:git branch

    了解当前库中包含哪些本地分支

    # git branch

    创建新的分支

    # git branch new-branch

    3.3.4 切换本地分支: git checkout

    # git checkout new-branch
    
    # echo ‘你好世界’> helloworld.txt
    
    # git add helloworld.txt
    
    # git commit -m helloworld-new-branch

    小结:

    Git并不是学习android移植和linux内核驱动开发必须掌握的技术,但对于想深入学习研究这些底层技术的人,Git将成为学习过程中必不可少的工具。

  • 相关阅读:
    去除网页图片缝隙
    只有定位的盒子有z-index
    clearfix
    2018CSS特效集锦牛逼
    c#spinLock使用
    redis 五种数据结构详解(string,list,set,zset,hash)
    C# StackExchange.Redis 用法总结
    Markdown 编辑器
    C# Task任务详解及其使用方式
    MongoDB学习笔记——MongoDB 连接配置
  • 原文地址:https://www.cnblogs.com/wy3983/p/5424748.html
Copyright © 2011-2022 走看看