zoukankan      html  css  js  c++  java
  • git version control

    create

    $git clone ssh://user@domain.com/repo.git

    $git init

    laocal changes

    $git status

    $git diff

    $git add .

    $git add -p <file>

    $git commit -a

    $git commit

    $git commit --amend

    commit history

    $git log

    $git log -p <file>

    $git blame <file>

    braches&tags

    $git branch -av

    $git checkout <branch>

    $git branch <new-branch>

    $git checkout --track <remote/branch>

    $git branch -d <branch>

    $git tag <tag-name>

    update&publish

    $git remote -v

    $git remote show <remote>

    $git remote add <shortname> <url>

    $git fetch <remote>

    $git pull <remote> <branch>

    $git push <remote> <branch>

    $git branch -dr <remote/branch>

    $git push --tags

    merge

    $git merge <branch>

    $git rebase <branch>

    $git rebase --abort

    $git rebase --continue

    $git mergetool

    $git add <resolved-file>

    $git rm <resolved-file>

    undo

    $git reset --hard HEAD

    $git checkout HEAD <file>

    $git revert <commit>

    $git reset --hard <commit>

    $git reset <commit>

    $git reset --keep <commit>

  • 相关阅读:
    jqueryui 进度条使用
    第一阶段站立会议03
    第一阶段站立会议02
    第一阶段站立会议01
    找到了——电梯会议
    软件需求规格说明书
    团队项目计划会议
    软件开发团队简介
    找水王
    NABCD需求分析
  • 原文地址:https://www.cnblogs.com/leonardchen/p/6708985.html
Copyright © 2011-2022 走看看