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 推送代码。
  • 相关阅读:
    redis在linux下的安装
    Redis在系统中的使用
    使用ServiceStackRedis操作redis
    Redis命令
    mongo增删改操作
    mongo c#驱动介绍操作
    LeetCode 19 删除链表的倒数第N个节点
    LeetCode 01 两数之和
    metapath2vec 笔记
    Q&A(一)
  • 原文地址:https://www.cnblogs.com/imsoft/p/5507228.html
Copyright © 2011-2022 走看看