Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

How to push an existing branch into a new repo using git?

You first have to add the new remote repository:

git remote add newrepo https://github.com/name.git

Then you could push your branch (yournewbranch) to this repository:

git push newrepo yournewbranch:master

If the master branch already exists you might force the update or push to an other branch on the new repository

Tags:

Git

Git Branch

Github

Git Remote

Related

React propTypes: objectOf vs shape? Powershell restore SQL Server database to new database asp.net core JWT in uri query parameter? List CSS custom properties (CSS Variables) Include a plain HTML file and folder with Angular CLI Build? How to fix the error “Could not find Angular Material core theme” in Angular 2? How to stub rand in rspec? Retrieve list of log names from Google Cloud Stackdriver API with Python Kotlin's crossinline keyword Higher Order Component redux dispatch being overwritten by wrapped component redux dispatch How to retrieve the most recent file in cloud storage bucket? How to run a powershell script with white spaces in path from command line?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy