One of the common mistakes using this command is when Bob forgets to update (git pull) his local tracked branch, in this case, using the force might cause Bob a lot of trouble. If there is an ancestor commit that exists in the remote and not in local(i.e someone updated the remote and we are not up to date) Git won’t be able to find a linear path between the commits and git push will fail. When our changes are pushed Git automatically searches for a linear path from the current ref to the target commit ref. Integrates the histories by forwarding the remote branch to reference the new commit, also called Fast forward ref.įast forward is simply forwarding the current commit ref of the branch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |