Giter Club home page Giter Club logo

git-activity-exporter's Introduction

git-activity-exporter

๐ŸŸฉ Export commit activity (and nothing else) from a source repo to a new repo

Installation

git clone [email protected]:thesofakillers/git-activity-exporter.git # clone
cd git-activity-exporter                                          # change directory
cmake .                                                           # prepare build
make install                                                      # install

Usage

Usage: git-activity-exporter [options]

Options:
--source=<source>            Required. The path to the source repository
--target=<target>            Required. The path to the target repository
--author=<author>            Optional. The author of the commits. Defaults to ""
--commit_message=<message>   Optional. The commit message. Defaults to ""
--branches=<branches>        Optional. The branches to copy commits from.
                                        Space separated list of branches.
                                        Defaults to the current branch and its parents

WARNING: this isn't very well tested ๐Ÿ˜…. I would suggest making a backup of your source repo before using this tool.

Why

Scenario 1

You work at company, which uses GitLab to host their git repositories. You are about to leave the company. Before you leave, you'd like your commits to show on your GitHub contributions graph. You'd rather not simply copy the company repository to your personal GitHub account, because you don't own it.

Instead, with git-activity-exporter, you copy your commit dates from the company repository to a new repository. These commits are blank and contain no information. You can push this new repository to your personal GitHub account, without worrying about any sensitive information being leaked.

Scenario 2

You share a repo with a team. At one point as a team you (for some reaosn) decide that instead of making new repositories that import the repo, you will simply make branches, one for every user. Your work in your branch does not show up on your contributions graph.

If you simply make a clone repo of your branch and set your branch as default in that repo, your commits in the main branch get double-counted. If instead you export only the commits from your branch with git-activity-exporter, you can cleanly show your activity in your branch without double-counting your previous contributions before branching.

git-activity-exporter's People

Contributors

thesofakillers avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

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.