zoukankan      html  css  js  c++  java
  • Git初体验

    本地git安装已完成。

    打开Git命令行

          使用前先进行基本配置:

               $ git config --global user.name "simonsfan"

               $ git config --global user.email "simonsfan@pptv.com"

            配置用户名和邮箱可以指向自己的GitHub

    首次配置ssh key,因为要和远程的Git仓库交互,远程的仓库上同时也要配置ssh key本次生成的,参见:http://www.runoob.com/git/git-remote-repo.html

          ssh-keygen -t rsa -C "youmail@example.com"

         一路回车,在家目录.ssh目录下找生成的公钥.

    而后按照GitHub上的创建过的项目出现的指导,将本地项目上传。

         先add 接着 commit 最后push

        

    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin git@github.com:mengsongshan/DeepEasyui.git
    git push -u origin master


    而后的使用需要的动作就是
    git add filename;
    git commit -m "commit comment"
    git push -u origin master

          

  • 相关阅读:
    python反爬之js混淆-字符串映射
    How to Provide a Default Trace for a Cloud Application
    Reset Peak Used Memory
    SAP 课程
    note 1639578 and 1622837
    SAP License error
    SAP BASIS-System Move
    初识Agile(敏捷项目管理)
    SAP HANA升级
    SAP FIORI 部署
  • 原文地址:https://www.cnblogs.com/hengwu/p/10038960.html
Copyright © 2011-2022 走看看