I am new to git and this appears to be basic question. I see pieces of info here and there but none of them seem to address this basic scenario, Please guide.
I need to clone featureBranch1(not master) to featureBranch2 and I want to add remote featureBranch2 and continue to commit to featureBranch2. I tried
git checkout featureBranch1
git checkout -b featureBranch2
git push -u origin featureBranch2
Update Turned out that above instructions were not working for me as I did not have to repo. Once I was granted access, I could push my changes.
Thanks