I check out a branch named FNB-90
from the master. In the branch FNB-90
, I made 2 add, commits and push them to the remote. Then, check out another branch named FNB-90-CHILD
from the FNB-90
.
a. Now, if in the branch FNB-90
, I commend:
$ git fetch # will fetch the latest changes on the remote
$ git reset --hard origin/master # will set your local branch to match the representation of the remote just pulled down.
will the FNB-90
revert back to the original state that I have checked out? If not, then how to do that?
b. If I delete the branch FNB-90
with the commend,
$ git branch -d FNB-90
$ git push origin --delete FNB-90
What will happen to the branch FNB-90-CHILD
i.e. will it become a direct branch of the master
?