GithubHelp home page GithubHelp logo

rename master branch about pyspf HOT 3 CLOSED

sdgathman avatar sdgathman commented on August 16, 2024
rename master branch

from pyspf.

Comments (3)

gpatel-fr avatar gpatel-fr commented on August 16, 2024 1

I am certainly no git expert, but here is my take on it
Step 1: create a duplicate of the pyspf repo (you can skip it as you already have it of course, but I wanted to try first)

git clone https://github.com/sdgathman/pyspf
cd pyspf
git checkout pyspf-1_7-branch
git checkout pyspf-2.1
git checkout pyspf-2_0-branch
git checkout master
git config -e  → replace sdgathman by gpatel-fr
git remote -v  → I am master now
curl -u gpatel-fr https://api.github.com/user/repos -d '{"name":"pyspf"}'
→ get a bunch of github goo
git push --all origin
→ verify on github that the repo looks good

now I have a new project totally unrelated to the existing source repo

step 2 change

cd ..
rm pyspf -rf

git clone https://github.com/gpatel-fr/pyspf
git branch -a -> looks similar to existing source repo

git checkout pyspf-2_0-branch
git branch -m master oldmaster
git branch -m pyspf-2_0-branch master
git branch -rD origin/master
git push --force --all

did I miss something ?





from pyspf.

sdgathman avatar sdgathman commented on August 16, 2024

from pyspf.

sdgathman avatar sdgathman commented on August 16, 2024

I finally did it. I seem to have even done it correctly, thanks to @gpatel-fr .

from pyspf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.