How do I force push local project folder (updated) to remote branch of same folder but slightly outdated?

I am using Eclipse with eGit plugin, my problem is: I had to work in college today on project without git (Downloaded as project from Bitbucket), worked on it, did quite a lot of updates, about 600 new lines in different files so manual merging would be very bad. So I have right now an offline version (the newer one) and I have online branch version which is older. How can I force update online version with offline version?

  • How to partition a git commit in two, based on same parent?
  • How to bring the git remote branch references local
  • Commit to develop branch directly in Git Flow?
  • when merging git branch, how to avoid the commits logs in a branch?
  • Recreate Git Ref after Fatal Error
  • Restore read-only status when switching branches in msysgit
  • git how to recover the last commit files
  • Does HEAD always refer to what “master” refers to (in this context)?
  • Finding out the version of git on remote server
  • Git: How to move contents of gh-pages branch to docs/ directory preserving history?
  • git branch -f and git checkout in one step
  • How to manage repositories on GitHub
  • One Solution collect form web for “How do I force push local project folder (updated) to remote branch of same folder but slightly outdated?”

    You could simply zip your offline project, unzip it on a local working tree that you would empty first .

    Git will detect all the changes, all the added or removed files.
    Simply:

    git add -A
    git commit -m "new commit"
    git push.
    

    You publish (push) a new commit which will represent all your changes.
    No merge required here.

    Git Baby is a git and github fan, let's start git clone.