I am new to git
so if you find my question stupid, just let me know and I will remove it.
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. But when I check on local for "diff", it doesn't list that file.
What am I missed here?
There are so many git commands and combination of commands to figure that out. 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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.