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>

  • 相关阅读:
    flask2 未整理
    flask1 未整理
    libvirt创建kvm虚拟机步骤
    libvirt之 virsh命令总结
    kvm的xml文件解释
    virsh命令和调用libvirt api的区别
    KVM
    libvirt
    kvm
    oracle中正则表达式的使用
  • 原文地址:https://www.cnblogs.com/leonardchen/p/6708985.html
Copyright © 2011-2022 走看看