Top "Commit" questions

Questions about committing a transaction or "unit of work" to a database, application or version control system.

How do you "rollback" last commit on Mercurial?

I have a Mercurial repository that I use in local only... It's for my personal usage (so I don't "push" …

mercurial commit rollback
Combining Multiple Commits Into One Prior To Push

This question pertains not only to how to accomplish this task, but to whether doing so is good or bad …

git commit git-commit
How to delete the last n commits on Github and locally?

I'm trying to delete the last 2 commits from one of my GitHub repositories. I've tried as suggested here : git push …

git github commit
How do I see the last 10 commits in reverse-chronological order with SVN?

Using the SVN command line, is there a way to show the last X number of commits along with commit …

svn commit
Trouble merging upstream changes back into my branch

I'm running into conflicts while trying to merge upstream changes back into my branch and I'm not sure how to …

git merge commit conflict partial
Git number of commits per author on all branches

I'd like to get the number of commits per author on all branches. I see that git shortlog -s -n …

git version-control commit
Undo delete in GIT

I made something very stupid. I made a commit using git commit (file edits + new files) (C). Then I made …

git commit delete-file undo undelete
How to find commits by a specific user in Git?

Our project uses Git as the version control system and recently I needed to review someone's commits. How can I …

git version-control commit
GitHub pull request showing commits that are already in target branch

I'm trying to review a pull request on GitHub to a branch that isn't master. The target branch was behind …

git github merge commit pull-request
How to remove the first commit in git?

I am curious about how to remove the first commit in git. What is the revision before committing any thing? …

git repository commit git-commit