Tuesday, 15 June 2010

version control - Does Git store amends? -


I know that they are present in git reflog , but if I commit to a remote repository Modify, then git push --force (warning: pushing -force remote repositories should generally be avoided), would it be committed that I am somewhere is present?

Do I overwrite somewhere?

  • Your local repo
  • Your remote (where the commit was previously published)
    This upstream repo is usually one, therefore, if you want to see referrals in the best upstream repo.
  • Push your second grip ( - force )
    before >

    Note that ORIG_HEAD (a) has been created / updated by not a git commit (such as a Git commit --mend or a git commit --amend -m "new comment" ). So if reflag is not activated on the repo, then ORIG_HEAD can not be used for reference.

  • No comments:

    Post a Comment