Top "Version-control" questions

Version control is the management of changes to documents, programs, and other information stored as computer files.

What is the Difference Between Mercurial and Git?

I've been using git for some time now on Windows (with msysGit) and I like the idea of distributed source …

git version-control mercurial comparison dvcs
How can I delete all Git branches which have been merged?

I have many Git branches. How do I delete branches which have already been merged? Is there an easy way …

git github version-control branch feature-branch
How do I ignore a directory with SVN?

I just started using SVN, and I have a cache directory that I don't need under source control. How can …

svn version-control directory
Do I commit the package-lock.json file created by npm 5?

npm 5 was released today and one of the new features include deterministic installs with the creation of a package-lock.json …

node.js git npm version-control lockfile
How can I view a git log of just one user's commits?

When using git log, how can I filter by user so that I see only commits from that user?

git version-control git-log
How can I undo git reset --hard HEAD~1?

Is it possible to undo the changes caused by the following command? If so, how? git reset --hard HEAD~1

git version-control git-reset
How do I migrate an SVN repository with history to a new Git repository?

I read the Git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but …

svn git version-control git-svn
How can I switch to another branch in git?

Which one of these lines is correct? git checkout 'another_branch' Or git checkout origin 'another_branch' Or git checkout …

git github version-control gitlab git-checkout
What's the best visual merge tool for Git?

What's the best tool for viewing and editing a merge in Git? I'd like to get a 3-way merge view, …

git version-control merge