GitHub basic tutorial
  • Introduction
  • Khởi động hệ thống Ground station computer - Companion computer (Odroid) - Pixhawk
  • Tao 1 private Folder tu public Folder
  • Tạo folder dev PX4 code
  • PX4 modification
  • MAVROS modification
  • Tạo node I3S_receiver
  • Kết nối đọc dữ liệu trong Pixhawk
  • Terminal Linux Ubuntu
  • Kết nối ROS hai máy tính
  • Build ros package in Odroid
  • Pressure sensor
  • Kết nối camera oCAM trên ROS
  • Cài đặt và sử dụng Matlab 2017b trên Linux Ubuntu
  • Một vài vấn đề trên Windows 7
  • Terminator
  • Upload compiled firmware of Pixhawk from odroid
  • Kết nối internet và Ethernet với Odroid (qua Switch) và 1 card mạng kết nối internet
  • IMU, Camera, Pixhawk connection to odroid
  • Kết nối ssh
  • Tham khao code homography cua Ninad
  • Matlab_2017b_problems
  • Eigen library - Mathematical toolbox for C++
  • Kinh nghiệm chuẩn bị presentation
  • Tap lenh lam viec voi Pixhawk px4
  • Offboard mode in PX4
  • P51 Lenovo, trackpad and trackpoint
  • P51 Lenov, Install Quadro M2200 graphic card
  • Gilab
  • Tao 1 private Folder tu public Folder
  • Ubuntu tips: show desktop by pressing Super + D
  • Install eclipse
  • Windows error
  • How to update Sublime Text 3 in ubuntu 16.04
  • PX4 Pixhawk hardfault
  • Install CUDA for computer with NVIDIA graphic card
  • Install openCV after installing CUDA
  • Meld - tool for file or folder comparison
  • GIT - move a full git repository from one remote sever to another one
  • Jetson Nano Installation
  • Working in Jetson Nano
  • Backup and Restore micro sd card
Powered by GitBook
On this page
  • Copied from
  • Command line instructions from GITLAB
  • Git global setup
  • Create a new repository
  • Existing folder
  • Existing Git repository

Was this helpful?

GIT - move a full git repository from one remote sever to another one

PreviousMeld - tool for file or folder comparisonNextJetson Nano Installation

Last updated 5 years ago

Was this helpful?

Copied

Let’s call the original repository ORI and the new one NEW, here are the steps required to copy everything from ORI to NEW:

  1. Create a local repository in the temp-dir directory using:

git clone <url  to ORI repo >  temp-dir
clone ori repository
  1. Go into the temp-dir directory.

  2. To see a list of the different branches in ORI do:

git branch -a
  1. Checkout all the branches that you want to copy from ORI to NEW using:

git checkout branch- name
  1. Now fetch all the tags from ORI using:

git fetch --tags
  1. Before doing the next step make sure to check your local tags and branches using the following commands:

git  tag

git  branch -a
  1. Now clear the link to the ORI repository with the following command:

git remote rm origin
  1. Now link your local repository to your newly created NEW repository using the following command:

git remote add  origin <url toNEW repo>
  1. Now push all your branches and tags with these commands:

git push origin  --all


git push  --tags
  1. You now have a full copy from your ORI repo.

Command line instructions from GITLAB

Git global setup

git config --global user.name "Lam Hung NGUYEN"
git config --global user.email "lamhung81@gmail.com"

Create a new repository

git clone 
https://gitlab.com/lamhung81/auvfirmware.git

cd auvfirmware
touch README.md
git add README.md
git commit -m "add README"

git push -u origin master

Existing folder

cd existing_folder
git init
git remote add origin 
https://gitlab.com/lamhung81/auvfirmware.git

git add .
git commit -m "Initial commit"

git push -u origin master

Existing Git repository

cd existing_repo
git remote rename origin old-origin
git remote add origin 
https://gitlab.com/lamhung81/auvfirmware.git
git push -u origin --all
git push -u origin --tags
git branch-a
checkout-branches
git-fetch-tags
git-tag-and-git-branch-a
end-result
from