GIT push from one repo to another
in PHP
Splitting off from a branch to another git repo seems like it would suck. In reality it's simple. Two lines and you're set.
Things you'll need:
- Source repo pulled down locally
- Target repo created on your git server (GitHub, BitBucket, GitLab, etc)
- Url for target git repo
- Branches
\$ cd /path/to/source
\$ git remote add targetrepo [email protected]:my_team/my_awesome_target_repo.git
\$ git push targetrepo my_branch_to_create_off_of:master
That'll create the master branch off of the branch "my_branch_to_create_off_of" from your local repo.