1)
Clone forked repo
#git clone https://github.com/sajuptpm/puppet-rjil.git
#cd puppet-rjil
2)
Check all existing branches
#git branch
add-sajuptpm-key
contrail_quota
* master
3)
Add official remote (official repo) and name it "official_remote"
#git remote add official_remote https://github.com/JioCloud/puppet-rjil.git
4)
Check all remotes
#git remote -v
official_remote https://github.com/JioCloud/puppet-rjil.git (fetch)
official_remote https://github.com/JioCloud/puppet-rjil.git (push)
origin https://github.com/sajuptpm/puppet-rjil.git (fetch)
origin https://github.com/sajuptpm/puppet-rjil.git (push)
5)
Fetch the latest version of master from official remote "official_remote"
#git fetch official_remote
6)
Update the master of forked repo (takes new commits from master of official repo and put it in master of forked repo)
#git rebase official_remote/master
7)
Push changes to forked repo in the github
#git push origin master
8)
Open your github account and check the forked repo
Clone forked repo
#git clone https://github.com/sajuptpm/puppet-rjil.git
#cd puppet-rjil
2)
Check all existing branches
#git branch
add-sajuptpm-key
contrail_quota
* master
3)
Add official remote (official repo) and name it "official_remote"
#git remote add official_remote https://github.com/JioCloud/puppet-rjil.git
4)
Check all remotes
#git remote -v
official_remote https://github.com/JioCloud/puppet-rjil.git (fetch)
official_remote https://github.com/JioCloud/puppet-rjil.git (push)
origin https://github.com/sajuptpm/puppet-rjil.git (fetch)
origin https://github.com/sajuptpm/puppet-rjil.git (push)
5)
Fetch the latest version of master from official remote "official_remote"
#git fetch official_remote
6)
Update the master of forked repo (takes new commits from master of official repo and put it in master of forked repo)
#git rebase official_remote/master
7)
Push changes to forked repo in the github
#git push origin master
8)
Open your github account and check the forked repo
No comments:
Post a Comment