Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8527441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:33:30+00:00 2026-06-11T08:33:30+00:00

I`m looking for best answer to following issue: When I create new branch I

  • 0

I`m looking for best answer to following issue:

When I create new branch I have to always remove folder public/assets/(Ruby on Rails, we precompile assets only before deploying to production) so this gives me in git status about 500 lines like here:

...
#   deleted:    public/assets/tinymce/tiny_mce_src.js
#   deleted:    public/assets/tinymce/utils/editable_selects.js
#   deleted:    public/assets/tinymce/utils/form_utils.js
#   deleted:    public/assets/tinymce/utils/mctabs.js
#   deleted:    public/assets/tinymce/utils/validate.js
...

So my vim-fugitive start being useless with this mess. I would like to hide this lines from git status but this files should be actually removed.

I dont want to commit that because I dont want to push this deleted files to remote repo.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:33:31+00:00Added an answer on June 11, 2026 at 8:33 am

    Actually you should NOT be having those assets in your Git in the first places.

    If you are using a deployment solution like Capistrano you can precompile the assets during deployment on the remote machine, saving you the hassle of having them in the Git repository.

    To enable asset compilation during a deployment with capistrano you simply have to add the following to your capfile (deploy.rb):

    load 'deploy/assets'
    

    Now whenever you deploy to your server capistrano will do the compilation on the server during deployment.

    You can then simply remove the public/assets directory from your git and add them to .gitignore

    Sorry to not answer your question directly, but what you are asking for is a remedy for the symptoms not addressing the cause.
    Unless of course you have a good reason why you have the assets in Git, if so please specify why and we may be able to find a better solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking for best advice on how to do this: I have an insert like
We have a legacy web application (not Spring based) and are looking for best
Looking for a best-practice advice: Let's suppose I have a Account object with limit
I'm looking for the best practice to solve the following situation: I've got an
I'm looking for a best practise answer. I want to do some preprocessing for
I am looking for best practices of avoiding constructor injection overuse. For example I
I'm looking for best practices here. Sorry. I know it's subjective, but there are
I am looking for best practice for uploading excel data in Sql server 2000
I'm just looking for best practice reassurance on working with jQuery and ASP.Net, before
I'm looking for best way of using session within zf application. At first I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.