/user/.ssh
在工作目录下
git initgit statusgit add --all git reset HEAD -- [FILE]git commit --allgit loggit reset --hard [commit_id]
与远程目录
git remote add git push -u {REMOTE_BRANCH} {LOCAL_BRANCH} git pull