【经验教训】use git with Modus-shell

use git with modus-shell

  1. open the C dirctory and open my workspace:
    cd /cygdrive/c
    cd ./workspace
  1. clone the code from batdigital.visualstudio.com:
    use SSH command line
    git clone SSH_COMMAND
  1. check the changes:
    git status
    git status -s
  1. check the logs:
    git log
  1. check the branch:
    git branch      # show which branch is working now
    git branch -a   # show all items including the local and the server
  1. switch to a new branch:
    git checkout -b NEW_BRANCH_NAME TRACK_BRANCH
  1. get the latest code:
    git pull
  1. submit code:
    git status -s
    git add NEW_ITEM
    git commit
    git push
  1. show the difference:
    git diff

猜你喜欢

转载自blog.csdn.net/weixin_45151415/article/details/132148012