can you explain me how to do proper PULL REQUEST in GIT, GITHUB while working with multiple BRANCHES ? also many previous COMMITS will be attached on new branches too, why is that so ?
santaSensei
can you explain me how to do proper PULL REQUEST in GIT, GITHUB while working with multiple BRANCHES ? also many previous COMMITS will be attached on new branches too, why is that so ?
Share
Go to the branch where you want to pull updates
git pull origin <yourbranchname>
this will pull update to your current branch from <yourbranchname> , you can pull from other branch also.. just replace branch name and pray not to get merge conflictand i didn’t understood what you are talking about commits
if i am right.. to stash or remove previous commits
git reset HEAD^
this work, that^
is there rememberundo - How to uncommit my last commit in Git - Stack Overflow
ok, i got how to pull the codes in my system but how to make request for the real person to change his code ?
Also about commit, I want to make many commit to single commit. So, what can i do about that ?
By pull request you mean merge request right?? Or just pulling a code from branch??
yes, i want make request to main developer for his code to change
Just compare branch (source branch: the branch you are working on to target branch: where to merge the code) then send pull request. He can just review your code and then merge/pull it to his branch if there is no conflict.
I don’t think you need to turn multiple commits into single commit, as they can see commit history.
ok, Thank you