Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
997 views
in Technique[技术] by (71.8m points)

deployment - Git workflow for working on large web app without messing with history

We've been trying a few answers we found here but none of them resolved our problem for good. I am working on a projet which exceeded git's large file threshold a few weeks ago. The large file is the compiled app.

We deploy on our prod server by pushing on a CleverCloud distant repo, and so have to add the .jar (which is in .gitignore the rest of the time) to the Deploy commit. For the past weeks we would then rewrite local history without the large file and continue working, but then at the next deployment we need to pull from CleverCloud since the history is different, we get the large file back in our history, sometimes forget it, have to rewrite 5 or 10 commits before pushing, which are not always only local commits etc... we need to find a solution before it gets messier than that.

We tried using git-lfs but then we have to untrack before commiting for Deploy, and then I guess the problem comes back.

What could be our solution ? Thanks

question from:https://stackoverflow.com/questions/65916080/git-workflow-for-working-on-large-web-app-without-messing-with-history

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...