zoukankan      html  css  js  c++  java
  • Git简易的命令行入门教程

    Git 全局设置:

    git config --global user.name "imsoft"
    git config --global user.email "imsoft@qq.com"

    创建 git 仓库:

    mkdir imsoft.github.io
    cd imsoft.github.io
    git init
    touch README.md
    git add README.md
    git commit -m "first commit"
    git remote add origin https://git.oschina.net/imsoft/imsoft.github.io.git
    git push -u origin master

    已有项目?

    cd existing_git_repo
    git remote add origin https://git.oschina.net/imsoft/imsoft.github.io.git
    git push -u origin master



    一次完整本地代码推送远程仓库流程

    ①创建远程仓库(github/gitee/coding),复制项目地址,
      如:https://git.oschina.net/imsoft/imsoft.github.io.git
    ②本地进入项目存放目录,
      使用git clone https://git.oschina.net/imsoft/imsoft.github.io.git,做项目初始化
    ③将代码放入项目目录,使用git add . ,添加所有更新;
      使用git commit -m "备注的信息",添加备注;
      使用git push -u origin master 推送代码。
  • 相关阅读:
    基于go语言的消息推送系统架构分析
    golang IDE 工具liteide打开报错解决方法
    centos 安装ffmpeg 并生成文件截图
    android 微信分享
    函数编程之闭包漫谈(Closure)
    2017-06-26
    本周总结
    一周总结
    一周总结
    一周总结
  • 原文地址:https://www.cnblogs.com/imsoft/p/5507228.html
Copyright © 2011-2022 走看看