zoukankan      html  css  js  c++  java
  • Git使用笔记

    win7安装git客户端

    使用git bash

    在gitcafe上新建一个项目

    1.创建一个新项目

    拥有者:answernotfount
    项目名称:testproject
    项目中文名称:测试项目
    项目描述:这是一个测试项目
    项目主页(选填):
    ……

    2.在电脑上安装和设置Git

    全局设置

    git config --global user.name 'answernotfound' git config --global user.email 'answernotfound@answernotfound.com'

    接下来:
    在本地创建新的Git仓库
    mkdir testproject
    cd testproject
    git init
    touch README.md
    git add README.md
    git commit -m 'first commit'
    git remote add origin 'git@gitcafe.com:answernotfound/testproject.git'
    git push -u origin master
    或者提交在本地已有Git仓库
    cd existing_git_repo
    git remote add origin 'git@gitcafe.com:answernotfound/testproject.git'
    git push -u origin master
    生成密钥

    生成一对密钥is_rsa和id_rsa.pub并将id_rsa.pub中的内容添加到公钥管理中。

  • 相关阅读:
    华为设备SNMP配置
    Linux CP直接覆盖快速操作
    CentOS7快速安装PHP7.0指南
    Linux SSH免密码登录配置
    this的指向
    分页的模块layui
    multer中间件
    ajax实现图片上传
    MVC模式、加密、jsonwebtoken
    mongoose与express
  • 原文地址:https://www.cnblogs.com/answernotfound/p/gitnote.html
Copyright © 2011-2022 走看看