我是git的新手,我曾经使用过svn,现在我正在部署自己的网站。我有以下
proyectos_git
->my_project.git
->my_project_bare_shared.git
mywebsite
->mywebsite_production
->mywebsite_development
clone of ../proyectos_git/my_project.git and
git remote add origin ../proyectos_git/my_project_bare_shared.git
我可以做推拉,但我不知道我的文件是否正在同步。在我做svn时svn我看到每个文件A和添加文件发生了什么,D表示已删除,G表示更新后的合并文件。
我应该怎么做才能很好地配置我的环境?
答案 0 :(得分:1)
推后你可以:
git diff --name-status HEAD~
推前:
git diff --name-status
分期后:
git diff --cached --name-status