开发者

Trying to push changes to github repo

开发者 https://www.devze.com 2023-04-04 15:46 出处:网络
I\'m trying to push changes from my local machine to my github repo and it\'s not working. I have committed locally:

I'm trying to push changes from my local machine to my github repo and it's not working.

I have committed locally:

nate@nate-desktop:~/PycharmProjects/TrendFollowing$ git commit -m "Change the underlying data type for time series from a list of dictionary entries to numpy arrays"
# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   trendfollowing/breakouts.py
#   modified:   trendfollowing/extrema.py
#   modified:   trendfollowing/test/breakouts_test.py
#   modified:   trendfollowing/test/timeseries_extrema_test.py
#   modified:   trendfollowing/test/timeseries_test.py
# 开发者_如何转开发  modified:   trendfollowing/timeseries.py
#
no changes added to commit (use "git add" and/or "git commit -a")

Next, I tried (just to be sure):

nate@nate-desktop:~/PycharmProjects/TrendFollowing$ git remote add origin git@github.com:natereed/trendfollowing.git
fatal: remote origin already exists.

This command was provided by github when I setup the repo (I think). I created a test project and substituted "test" with the name of my repo:

nate@nate-desktop:~/PycharmProjects/TrendFollowing$ git push -u origin master
Branch master set up to track remote branch master from origin.
Everything up-to-date

Why is it not pushing my changes?

EDITED: Added missing error message ("no changes added to commit")


You haven't commited. git commit -m will only commit what is in the staging area. Either use git commit -a -m or use git add to add files to the staging area.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号