I'm using Git for version control and have a remote repository on Github and a local master on my machine. The file I'm changing is Toxic Comment Classification.ipynb
.
I make some modification to the file. Running git status
shows:
modified: Toxic Comment Classification.ipynb
Then I run:
git branch develop
git checkout develop
Now running git status
tells me I'm on the local develop
branch and I have changes to the Toxic Comment Classification.ipynb
file.
Now I run:
git add -u
git commit -m "checkpoint"
and I get back:
[develop ef9250e] checkpoint
1 file changed, 116 insertions(+), 99 deletions(-)
All seems good. Now I want to push this local branch (develop
) to my remote master branch:
git push origin master
and I get back:
Everything up-to-date
which is not what I expected / wanted. I can successfully push to origin/develop
, however.
1) What am I doing incorrectly here? I'd expect to see the changes I made on my develop
branch reflected in origin/master
...
Finally, I try to get around this all by checking out my local master
branch and merging in my local develop
branch. I then run:
git push origin master
and get back:
Total 0 (delta 0), reused 0 (delta 0)
To https://github.com/bclayman/ToxicCommentTextClassification.git
6de47de..ef9250e master -> master
2) Shouldn't this approach also work? Its output makes me think nothing has been updated and looking on Github doesn't show any recent update...
Thanks!