• github


    获得密钥:
    ssh-keygen -t rsa -C "aa@aa.com"

    链接github
    aa@aa:~/dema$ ssh -T git@github.com
    Hi username! You've successfully authenticated, but GitHub does not provide shell access.

    设置用户名和邮箱
    aa@aa:~/demo$ git config --global user.name "username"
    aa@aa:~/demo$ git config --global user.email  "email@163.com"

    上传工程
    aa@aa:~/demo$ git add .
    aa@aa:~/demo$ git commit -m 'add demo product'
    [master (root-commit) 3ca3972] add demo product
     69 files changed, 1840 insertions(+)
     create mode 100644 app/controllers/application_controller.rb
     create mode 100644 app/controllers/blogs_controller.rb
     create mode 100644 app/helpers/application_helper.rb
     create mode 100644 app/helpers/blogs_helper.rb
     create mode 100644 app/models/blog.rb
     create mode 100644 app/views/blogs/show.html.erb
     create mode 100644 doc/README_FOR_APP
     create mode 100644 lib/assets/.gitkeep
     create mode 100644 log/.gitkeep
     create mode 100644 public/404.html

    aa@aa:~/demo$ git remote add origin https://github.com/username/demo.git
    aa@aa:~/demo$ git push -u origin master
    Username for 'https://github.com': username
    Password for 'https://username@github.com':
    Counting objects: 101, done.
    Delta compression using up to 2 threads.
    Compressing objects: 100% (90/90), done.
    Writing objects: 100% (101/101), 32.20 KiB, done.
    Total 101 (delta 9), reused 0 (delta 0)
    To https://github.com/username/demo.git

    github  errors
    aa@aa:~/demo$ git init
    Reinitialized existing Git repository in /home/aa/demo/.git/
    aa@aa:~/demo$ git remote add origin https://github.com/username/demo.git
    fatal: remote origin already exists.
    aa@aa:~/demo$ git push -u origin master
    ERROR: Repository not found.
    fatal: The remote end hung up unexpectedly
    aa@aa:~/demo$ git remote rm origin
    aa@aa:~/demo$ git remote add origin https://github.com/username/demo.git

  • 相关阅读:
    bat学习
    Eclipse调试方法及快捷键
    JDK中的设计模式
    开源-自由-乔布斯
    AOP
    编程语言
    [LeetCode] 160. Intersection of Two Linked Lists(两个单链表的交集)
    [LeetCode] 198. House Robber(小偷)
    [LeetCode] 155. Min Stack(最小栈)
    [LeetCode] 1. Two Sum(两数之和)
  • 原文地址:https://www.cnblogs.com/qinyan20/p/3643177.html
Copyright © 2020-2023  润新知