zoukankan      html  css  js  c++  java
  • Git基本操作(一)

    Git 使用(一)

    - git init 初始化仓库
    - git status 仓库状态
    - git add filename 单个文件加入暂存
    - git add. 全部加入暂存
    - git commit -m <message> 添加描述
    - git log 查看日志
    - git reset ID 退回到某编号下的版本
    - git reflog 所以的操作记录
    - git checkout -b <name><template> 新建分支,参数为名字和模板
    - git checkout -b <name>origin<template> 新建分支,参数为名字和远端模板
    - git checkout <branchname> 切回某个分支
    - git branch 查看所有分支(本地)
    - git merge <branch> 合并分支的操作。针对一个个commit合并
    
    
    - git push --set-upstream 远端新建上流分支,之后均可以 git push
    - git fetch 拉取远端仓库的信息
    - git pull  先fetch在merge
    - git rebase <branchname> 变基,新分支的commit添加在以branchname为模板
    - git rebase --continue 继续下一个节点的rebase
    
  • 相关阅读:
    asp.net mvc 缓存
    C#版 Socket编程(最简单的Socket通信功能)
    c# 读取嵌入式文件
    js 对象 copy 对象
    double截取小数点位数
    c#读取excel
    观察者设计模式
    xml序列化方式
    sicily Huffman coding
    sicily Fibonacci 2
  • 原文地址:https://www.cnblogs.com/oasisyang/p/13190223.html
Copyright © 2011-2022 走看看