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