Giter Site home page Giter Site logo

Big files in repo about returnn-experiments HOT 5 CLOSED

albertz avatar albertz commented on June 19, 2024
Big files in repo

from returnn-experiments.

Comments (5)

ZhouW321 avatar ZhouW321 commented on June 19, 2024

executables removed, anything else ?

from returnn-experiments.

albertz avatar albertz commented on June 19, 2024

Yes the Git history now needs to be rewritten, as explained.

from returnn-experiments.

ZhouW321 avatar ZhouW321 commented on June 19, 2024

ok

from returnn-experiments.

albertz avatar albertz commented on June 19, 2024

For reference, this is even explained in the GitHub docs. Also here, here. But as we discussed, I will do that.

from returnn-experiments.

albertz avatar albertz commented on June 19, 2024

I now cleaned it up using BFG, with a limit of 3MB for files (basically just bfg -b 3M).

This means that I now changed the master branch history.

This means, next time you pull in an existing cloned repo, you might see sth like:

$ git pull
remote: Enumerating objects: 57, done.
remote: Counting objects: 100% (57/57), done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 57 (delta 18), reused 57 (delta 18), pack-reused 0
Unpacking objects: 100% (57/57), 8.40 KiB | 477.00 KiB/s, done.
From github.com:rwth-i6/returnn-experiments
 + a0ca3bf...a2c804a master     -> origin/master  (forced update)
hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: Need to specify how to reconcile divergent branches.

I did git pull -r and that worked. I.e. afterwards, git status displays:

$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

This is important. You should not see any new things to be committed there. Your branch should be up to date now.

I'm not sure if git pull -r always works or whether it might reintroduce the bad files in some cases, or break in other cases. Double check git status.

If this somehow does not work for you, just clone the repo again.

In the future, please always check that you are not adding big files.
(Maybe we can enforce this. See #77.)

from returnn-experiments.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.