To get source:
$git clone <source-path> <your-dir>
To upstream local to remote git repo
$git add .
$git commit -m "<log message>"
$git push <target-path> <branch>
Also you can see log by command "git log"
$git log
To get the lastest modified file:
$git pull
To remove file and sync source
$git add -u
$git commit -m "<reason>"
$git push