zoukankan      html  css  js  c++  java
  • 一次奇葩的代码转移经历

    零、最近在看一本书,机械工业出版社的《C指针原理揭秘 基于底层实现机制》,内容不是吐槽的重点,吐槽下给代码的方式,居然是个vdi文件,你没看错。该文件是virtual box的硬盘镜像文件,作者的脑回路有点靑奇。

    一、安装了virtual box虚拟机,经过命令sudo modprobe vboxdrv后,虚拟机启动了
    二、新建虚拟机,

      1、名称:1111  文件夹:默认就好  类型:linux   版本:ubuntu (64-bit)

      2、内存2048M足够

      3、选择 使用已有的虚拟硬盘文件,文件名是my ub.vdi,选择创建

    三、启动虚拟机,选择第一项默认的即可

      1、用户名:myhaspl  密码168登陆进系统,成功后

      2、安装git  sudo apt-get install git

      3、进入:https://github.com/guochaoxxl,点击右上角的“+”,选择new repository(新建仓库),填写合适的仓库名,符合命名规范即可,单击:create repository(创建仓库)即可
      4、会有个提示信息:内容如下新仓库:
    1 echo "# codeStudy" >> README.md
    2 git init
    3 git add README.md
    4 git commit -m "first commit"
    5 git branch -M main
    6 git remote add origin https://github.com/guochaoxxl/bookCode
    7 git push -u origin main

      和下面现有仓库:

    1 or push an existing repository from the command line
    2 
    3 git remote add origin https://github.com/guochaoxxl/bookCode
    4 git branch -M main
    5 git push -u origin main

       5、依次执行框一中的命令即可:

        我先执行了:git  clone  https://github.com/guochaoxxl/bookCode  并执行了  mv  learn* /bookCode/

        git init

        git add *

        git commit -m "first commit

         git branch -M main

        git remote add origin https://github.com/guochaoxxl/bookCode

        git push -u origin main 此时,一般要求提供用户名和密码,输入登陆信息,等待片刻,即可完成代码的上传工作了

      

           

  • 相关阅读:
    fs.readdirSync
    symbol
    vuex-count
    webpack2.0
    关于vuex报错
    store
    .NET MVC 验证码
    SQLServer 加密
    IE10、IE11下SCRIPT5009: “__doPostBack”未定义
    Sql Server 增加字段、修改字段、修改类型、修改默认值
  • 原文地址:https://www.cnblogs.com/guochaoxxl/p/13971422.html
Copyright © 2011-2022 走看看