Skip to main content

Rewriting History

I often flesh out ideas with actual code. Most of the time this is simply a sketch exercise. Sometimes though, I work on this "sketch" enough that it becomes the "work". This is usually not an issue. However, like a sketch, I throw together ideas; jotting them down if you will. 

The current project I am working on started this way. It is now at the point where I have deliverables and glaring issues from my choices. Issues to me at least. For instance, all pieces are in one git repository. This is not a huge deal. Personally, I prefer the import, mobile, and web folders to be their own repository to keep their commits and tags cleaner.

Splitting a Repository

A quick search provided two ways to move a subfolder to a new repository. This help guide from github uses filter-branch, which comes with a warning:

git-filter-branch is riddled with gotchas resulting in various ways to easily corrupt repos or end up with a mess worse than what you started with

This did not work as well as The Easy Way described in a StackOverflow answer. Here is the run down of The Easy Way using my example repository Project-A

Change the Committing Account

Suppose I started hacking away at my keyboard, never realizing I was committing changes with the wrong git account. This sounds crazy I know. 

This article from Github provides the directions to correct the email and username using filter-branch for past commit history. Despite the dire warning, it worked! In short:

  • change the OLD_EMAIL, CORRECT_NAME, and CORRECT_EMAIL in the script below
  • paste corrected version into git bash
  • press [ENTER]
  • push to new repository on Bitbucket or Github or ??

Comments

  1. The Casino at El Cajon - Mapyro
    Find all information and 아산 출장마사지 reviews for The 전주 출장마사지 Casino at El Cajon - See all info 광주 출장안마 and directions. Find your way around the casino, find 용인 출장안마 where everything is  정읍 출장안마 Rating: 4 · ‎5 reviews

    ReplyDelete
  2. Fortunately, Game Kings are ubiquitous in Vegas, installed in all places from the nook 7-Eleven to the toniest luxurious on line casino. They mapped out their campaign and 다파벳 then headed again to Kane's home for the night time. After a fast breakfast, they drove to the Fremont, took adjacent seats at two Game Kings, and went to work. Kane had some thought of how the glitch operated but hadn't been in a position to} reliably reproduce it.

    ReplyDelete
  3. This gambling site has a live chat support team, however find a way to|you possibly can} only use this feature if 카지노사이트 you’re logged into your account. After claiming your first deposit bonus, you’ll be eligible to get more bonuses in your first deposit each month for the following 12 months. In that case, variety of the} titles you can to|you possibly can} play listed here are|listed beneath are} Mega Moolah, Hall of Gods, Mega Fortune, Arabian Nights, and Atlantean Treasures Mega Moolah. Each bonus you get comes with 40x wagering requirements, which {is more or less|is type of} trade standard. SlotWolf is a superb site for worldwide gamers, with a attain across the globe.

    ReplyDelete
  4. Visa, MasterCard, EasyEFT, EcoPayz, Neteller, Skrill, Wire Transfer, and Bitcoin are the obtainable payment methods at Yebo. All funds are processed in South African Rands and are protected by the SSL encryption. Yes, on-line slots casinos 온라인카지노 are trustworthy lengthy as|so lengthy as} you understand the place to go.

    ReplyDelete
  5. A CNC router may be very comparable in idea to a CNC milling machine. Instead of routing by hand, device paths are controlled via computer numerical management. The CNC router is considered one of many kinds of tools that have CNC variants. Many CNC tools additionally have no idea anything about their working setting. Machines may have load sensing systems on spindle and axis drives, but some do not. They blindly observe the machining code supplied and it's a lot as} an operator to detect if a crash is either occurring or about to occur, and best bucket hats for men for the operator to manually abort the lively process.

    ReplyDelete

Post a Comment