zoukankan      html  css  js  c++  java
  • 本地文件夹变远程仓库并且提交Github

    //初始化本地仓库
    $ git init
    Initialized empty Git repository in C:/Users/root/Desktop/vue-music/.git/
    
    root@DESKTOP-S1JNUOH MINGW64 ~/Desktop/vue-music (master)
    //添加README.md 描述文件
    $ git add README.md
    
    root@DESKTOP-S1JNUOH MINGW64 ~/Desktop/vue-music (master)
    //提交到本地仓库
    $ git commit -m "frist commit!"
    [master (root-commit) f0b9293] frist commit!
    1 file changed, 21 insertions(+)
    create mode 100644 README.md
    
    root@DESKTOP-S1JNUOH MINGW64 ~/Desktop/vue-music (master)
    //推送到远程仓库
    $ git remote add origin https://github.com/Sunnshino/vue-music.git
    
    root@DESKTOP-S1JNUOH MINGW64 ~/Desktop/vue-music (master)
    //推送到主分支
    $ git push -u origin master
    Counting objects: 3, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (2/2), done.
    Writing objects: 100% (3/3), 514 bytes | 0 bytes/s, done.
    Total 3 (delta 0), reused 0 (delta 0)
    To https://github.com/Sunnshino/vue-music.git
    * [new branch] master -> master
    Branch master set up to track remote branch master from origin.
      
    

      

  • 相关阅读:
    学习小记: Kaggle Learn
    eclipse 一些快捷键
    Map接口
    学习笔记
    泛型方法 类 接口
    TreeSet
    xml
    Java笔试题目-my
    迭代器三种遍历方法
    线程请求其他线程资源
  • 原文地址:https://www.cnblogs.com/cisum/p/7755425.html
Copyright © 2011-2022 走看看