简体   繁体   English

Git和SVN及其分支

[英]Git and SVN and branches

I am new in git, I used to use svn at and now I am deploying my own website. 我是git的新手,曾经在上使用svn,现在正在部署自己的网站。 I've got the follows 我有以下

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

I can do push and pull, but I don't know if my files are synchronizing. 我可以推拉,但是我不知道我的文件是否正在同步。 In svn when I do svn up I see what's happening with every file A for and added file, D for Deleted and G for a merge file after being updated. 在svn中,当我进行svn时,我会看到更新后的每个文件A和添加的文件,D为已删除的文件和G为合并文件的情况。

What should I do to configurate well my enviroments? 我应该怎么做才能很好地配置我的环境?

After pushing you can: 推送后,您可以:

git diff --name-status HEAD~

Before pushing: 推送之前:

git diff --name-status

After staging: 分期后:

git diff --cached --name-status

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM