/
Git commands to sync repo

Git commands to sync repo

  1. To Add the old repo as a remote repository:

git remote add oldrepo https://github.com/path/to/oldrepo

2. To Get the old repo commits

git remote update

3. To examine the whole tree

git log --all --oneline --graph --decorate

4. To copy (cherry-pick) the commits from the old repo into your new local one

5. check your local repo is correct

6. send your new tree (repo state) to github

7. remove the now-unneeded reference to oldrepo

Video reference:

https://tldv.io/app/meetings/636b71e65b26aa0013ee7c9c

Related content

Git Repository Splitting
Git Repository Splitting
More like this
GIT Basics
GIT Basics
More like this
How-to articles
How-to articles
Read with this
Git Repository Setup
Git Repository Setup
More like this
Merging Kubernetes kubectl config files
Merging Kubernetes kubectl config files
Read with this
New Git Strategy
New Git Strategy
More like this