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

  • Home
  • SEARCH
  • 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 7734857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:21:20+00:00 2026-06-01T07:21:20+00:00

In playing with my webapp, I added files containing passwords to my git repo.

  • 0

In playing with my webapp, I added files containing passwords to my git repo. I’ve since removed them, but I’d like to start a new git repo that doesn’t have the commits when the passwords were included (I’ve changed the passwords, just like to start anew).

Is there someway I can grab a git repo without grabbing all the history? Or should I just copy the folder and start a new git repo in the copied folder? How would I start a new git repo, just remove the .git folder and then rerun git init?

  • 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-01T07:21:22+00:00Added an answer on June 1, 2026 at 7:21 am

    You are correct, if you know you don’t want any of the history just delete the .git folder and rerun git init. Another option, if you would like to keep your history, is to follow this excellent Github guide on removing sensitive data.

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

Sidebar

Related Questions

Playing with the new(ish) url rewriting functionality for web forms, but I'm running into
I'm playing with the incomplete example found at http://www.w3.org/TR/offline-webapps/ But I'm distressed to see
I'm playing with Python and Google App Engine for the first time but am
I have a few HTML files that I'd like to include via tags in
I am not a professional web developer, but I like to wrench on websites
Playing with new RTTI module, I couldn't find a way to set an event
I've just been playing with Compojure recently, and I've got a small basic webapp.
So, I've been playing with ASP.net MVC4 and the new WebAPI the past few
I have been playing with Redis win64 port with ServiceStack.Redis client (in C#) since
I'm new to Ruby and I've been playing around with making some webapps with

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.