Python Forum
Forcing a github push after major changes
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Forcing a github push after major changes
#6
Quote:Changes not staged for commit:
       deleted:    LICENSE
       deleted:    README.md
       deleted:    __init__.py
       deleted:    screenshot.png
       deleted:    src/CaCompGui.py
       deleted:    src/UpdateCatalog.py
       deleted:    src/__init__.py
These are files that you removed on your local repo, but they still exist on the github repo as it hasnt been updated yet.

Quote:Untracked files:
       build/
       dist/
       pip-selfcheck.json
       pyvenv.cfg
       setup.cfg
       setup.py
These are files on your local repo, that are not on the github repo.

The following will update your repo assuming you are using master and not a branch
git add .
git commit -m "I updated blah blah"
git push origin master
After this your local and github repo should be in sync.


EDIT:
Why do you have the URL in the command? Did you ever connect the directory with the github repo? Should be something like... git remote add origin https://github.com/Larz60p/CaliforniaPublicSalaries.git

I made a tut with the basics of initializing and adding files to a repo. Not much after that, was just trying to get people to use repos instead of posting multiple files on the forum  Smile. But it includes what you are doing here. 
Recommended Tutorials:
Reply


Messages In This Thread
RE: Forcing a github push after major changes - by metulburr - Mar-30-2017, 11:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Forcing matplotlib to NOT use scientific notation when graphing sawtooth500 4 553 Mar-25-2024, 03:00 AM
Last Post: sawtooth500
  Recommendations for IMAP Push/IDLE library MikeFlorida 0 921 Jul-15-2023, 05:19 PM
Last Post: MikeFlorida
  Push video to left and remove background finndude 12 2,147 Dec-13-2022, 10:42 AM
Last Post: finndude
  I need advise with developing a brute forcing script fatjuicypython 11 5,403 Aug-21-2020, 09:20 PM
Last Post: Marbelous
  neeeed help major hussruss253 0 1,322 Dec-24-2019, 06:20 AM
Last Post: hussruss253
  Forcing input from pre-defined list. scotty501 11 6,355 Jun-18-2019, 01:49 PM
Last Post: scotty501
  Why doesn't gc delete an object without forcing a garbage collection call? AlekseyPython 5 3,894 Mar-19-2019, 02:10 AM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020