I am creating a new pristine repository for the next generation of our product. I need to use some "state" from the old repo -- similar to cherry-picking. In fact, functionally it would be simply resetting to a commit on the old repo then committing the file changes to the new repository. I did find that I could checkout the old branch, reset --soft to the earliest commit, then commit those files. But it seems like a hack. Since I see upstream and origin as a bit of a pattern, it seems like this would not be too uncommon, although I guess most of those cases would want commits.
How can I move branch files from an old repository to a new one without the old commits
55 Views Asked by rhaben At
1
There are 1 best solutions below
Related Questions in GIT
- Is my solution to sicp exercise 2.54 right?
- Value returned by a define expression in Scheme
- error function in lang sicp in DrRacket does not bound
- Why is my cubic root algorithm wrong? Exercise 1.8 in SICP
- count-leaves in Clojure from SICP
- Scheme: Accelerated Stream
- How do you find where an error has occurred in MIT scheme?
- Simple library mechanism for scheme - import implementation
- Executing LISP programs in GNU Emacs
- Meaning of 'quote in Lisp
Related Questions in BRANCH
- Is my solution to sicp exercise 2.54 right?
- Value returned by a define expression in Scheme
- error function in lang sicp in DrRacket does not bound
- Why is my cubic root algorithm wrong? Exercise 1.8 in SICP
- count-leaves in Clojure from SICP
- Scheme: Accelerated Stream
- How do you find where an error has occurred in MIT scheme?
- Simple library mechanism for scheme - import implementation
- Executing LISP programs in GNU Emacs
- Meaning of 'quote in Lisp
Related Questions in MULTIPLE-REPOSITORIES
- Is my solution to sicp exercise 2.54 right?
- Value returned by a define expression in Scheme
- error function in lang sicp in DrRacket does not bound
- Why is my cubic root algorithm wrong? Exercise 1.8 in SICP
- count-leaves in Clojure from SICP
- Scheme: Accelerated Stream
- How do you find where an error has occurred in MIT scheme?
- Simple library mechanism for scheme - import implementation
- Executing LISP programs in GNU Emacs
- Meaning of 'quote in Lisp
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You need to do a checkout --orphan so that you go to that revision (working tree content) but have no history behind it. When you do your first commit, it will be a root commit, no history behind it.