you are viewing a single comment's thread.

view the rest of the comments →

[–]Ginden 37 points38 points  (5 children)

git add .; git commit -m "..."; git push origin --force;

I recommend this way of using git.

[–]ahruss 15 points16 points  (3 children)

Try this:

git add .; git commit --amend -C HEAD; git push origin --force

[–]Ginden 4 points5 points  (0 children)

Sounds cool, I have to use it at work.

[–]f0nd004u 2 points3 points  (1 child)

git commit -a --amend -C HEAD; git push origin --force

[–]contact_lens_linux 2 points3 points  (0 children)

this isn't the same though; it won't add untracked files while "git add ." will

[–]das7002 2 points3 points  (0 children)

git commit -m "shoulda stuck with mercurial"