10/30/2023 0 Comments Xcode old version![]() ![]() ![]() Since it is so easy to destroy or at least impede your colleagues' work, here are a few "safety rules" around git push -force: Your "force push" changes this history and means theirs is not in line with the new one anymore. Also, even if no one else has pushed anything to the remote repository in the meantime, your colleagues might still have based their new work on the old commit history. ![]() This is a rather dangerous process, because it's very easy to overwrite (and thereby lose) commits from your colleagues. The -force option for git push allows you to override this rule: the commit history on the remote will be forcefully overwritten with your own local history. Only when you are up-to-date will you be able to push your own new commits to the remote. As described above, Git will normally only allow you to push your changes if you have previously updated your local branch with the latest commits from its remote counterpart. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |