Skip to content

Instantly share code, notes, and snippets.

View BalajiSriraman's full-sized avatar
:shipit:
Its works in my machine

Balaji S BalajiSriraman

:shipit:
Its works in my machine
View GitHub Profile
Other 🕓 11h37m ████████░░░░░░░░░░░░░░░░░░ 31.0%
TypeScript 🕓 10h39m ███████▍░░░░░░░░░░░░░░░░░░ 28.4%
Vue.js 🕓 7h58m █████▌░░░░░░░░░░░░░░░░░░░░ 21.3%
Rust 🕓 2h10m █▌░░░░░░░░░░░░░░░░░░░░░░░░ 5.8%
Bash 🕓 1h18m ▉░░░░░░░░░░░░░░░░░░░░░░░░░ 3.5%
@BalajiSriraman
BalajiSriraman / merge one repository into another while preserving commit history.md
Last active July 2, 2024 20:01
merge one repository into another while preserving commit history

Add the first repository as a remote in the second repository:

git remote add other-repo <url-of-first-repo>

Fetch the branches from the first repository:

git fetch other-repo

to merge the desired branch from the first repository into your current branch: