I have read a number of threads here on this topic but I am not able to figure out why this is not working as expected.
Here are the steps I took:
I installed and downloaded a certain library from the online git repository using
Step 1
git clone https://github.com/deepchem/deepchem.git
The library was installed under /home/username/deepchem
. This is a local git repository and does have the .git folder. I modified some files in this folder.
Step 2
Next, I created an online fork.
Following the instructions here, I did:
git remote add upstream https://github.com/onlineusername/deepchem
git fetch upstream
git diff master upstream/master
I was hoping to diff between the local repository in “/home/username/deepchem” that I had fetched and modified in Step 1. However when I did the git diff in Step2, it didn’t show the changes that I know are present between the online fork and the current local repository (/home/username/deepchem). I think it’s mainly showing the diff between my online fork and the current master.
How do I get a diff between the online fork and my current local repository stored in /home/username/deepchem
?
Thanks a lot!