zoukankan      html  css  js  c++  java
  • GIT 使用记录,新手->会用(mac 用户)

    (唔,mac 用户这个要求是因为集成在 terminal 中可直接使用)

    1. github 中 创建 git 账户

    2. github -> 在个人设置中 找到 ssh  and GPGkeys 页面

    3. Terminal 中 ssh-keygen  生成一个ssh key(可选择加入密码)

    4. github 中 new SSH Key 创建个 title 然后加入刚生成的 key

    5. 在电脑目录中创建一个 项目 目录 并 newFile.txt 文件(随便什么文件)

    6. Terminal 中 git init 

    6.1 git add newFile.txt(随便什么文件)

    6.2 git commit -m 'newFile'  (最后的 newFile 是描述信息)灰色代表可以不写这两个命令,直接添加账户

    6.3 根据之前创建的账户, git -config --global user.email example@email.com ( 这里是你的git邮箱)

    6.4 git -config --global user.name yourName( 这里是你的名字)

    7. git remote add origin git@github.com:ming-os9/MBP.git (git@github.com:  后边的是 github 你项目的地址)

    8. git add . ( 添加所有此目录的文件)

    9. git commit -m 'newFile'

    10. git push -u origin master (第一次 push 这个设置比较麻烦 之后就简单了)

    11.1  git add .

    11.2 git commit -m 'demostration for my commiting files'

    11.3 git push

  • 相关阅读:
    ehcache 使用
    android 换肤 apk
    ant 打不同渠道包
    strawberry perl
    rest 网络设计开发,降低复杂性设计方案
    android 进度条
    android 算定义布局xml
    ant 自动打包
    c# 调用cmd 输出 阻塞 解决
    web service2
  • 原文地址:https://www.cnblogs.com/ming-os9/p/9799146.html
Copyright © 2011-2022 走看看