简体   繁体   English

检查Git存储库中的更改:BitBucket

[英]Check for changes on Git Repository : BitBucket

I am new to git so if you find my question stupid, just let me know and I will remove it. 我是git新手,所以如果您发现我的问题很愚蠢,请告诉我,我将其删除。

So I have "push"ed a project to my private repository. 因此,我已将项目“推送”到我的私有存储库。 Next day, I wanted to list all files that needs to be "pull"ed and "merge"d before I start my work. 第二天,我想列出所有在开始工作之前需要“拉”和“合并”的文件。 In other words I wanted to list all files that has been changed and pushed. 换句话说,我想列出所有已更改和推送的文件。

So what I did, I changed a file online, through BitBucket online editor and committed. 因此,我所做的就是通过BitBucket在线编辑器在线更改了文件并提交。 But when I check on local for "diff", it doesn't list that file. 但是,当我在本地检查“ diff”时,它没有列出该文件。

What am I missed here? 我在这里想念什么?

There are so many git commands and combination of commands to figure that out. 有很多git命令和命令组合可以弄清楚这一点。 The easiest, and in most cases I always use 最简单,在大多数情况下,我总是使用

git status or 
sudo git status 

in the checked out repo or in the cloned repo to figure out what changed. 在签出的仓库中或在克隆的仓库中找出发生了什么变化。

Ok. 好。 I get it now. 我明白了 its first git fetch then to check for the difference you need to use git diff origin origin/master one you confirm, you do git merge to apply changes. 它首先进行git fetch然后检查您需要使用git diff origin origin/master确认的git diff origin origin/master ,然后执行git merge来应用更改。

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

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