rct g rct g - 1 year ago 60
Git Question

In git What will be applied into the file if I pushed 3 commits in the remote repository? Will the latest pushed commit will be applied or the first?

I have pushed 3 commits in the remote repo and I am worry of the result on what effect does 3 pushed commits will do. Will the first commit will be applied or the latest commit? thanks. what should I do?

Answer Source

After first commit, without changing the file if you want to perform commit, this will give you a warning: "No changed items were selected. Do you wish to amend the last commit?" I hope you got this. Then if you go for yes option, then it will re-commit and update the pointer.

You can check the changes in Gitblit, if it is configured for you.

Also if your committed file is correct (has same code) then nothing to worry.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download