0% found this document useful (0 votes)
2 views

git and subversion

Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

git and subversion

Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Question: How To Revert Commit In GIT?

Given one or more existing commits, revert the changes that the related patches
introduce,
and record some new commits that record them. This requires your working tree to be
clean (no modifications from the HEAD commit).
git-revert - Revert some existing commits
SYNOPSIS
git revert [--[no-]edit] [-n] [-m parent-number] [-s] [-S[<keyid>]] <commit>…
git revert --continue
git revert --quit
git revert --abort
Question: How To Delete Remote Repository In GIT?
Use the git remote rm command to remove a remote URL from your repository.
The git remote rm command takes one argument:
A remote name, for example, destination
Questions: What Is GIT Stash Drop?
37/71
In case we do not need a specific stash, we use git stash drop command to remove it
from
the list of stashes.
By default, this command removes to latest added stash
To remove a specific stash we specify as argument in the git stash drop <stashname>
command.
Question: What Is Difference Between GIT and Subversion?
Here is a summary of Differences between GIT and Subversion
Git is a distributed VCS; SVN is a non-distributed VCS.
Git has a centralized server and repository; SVN does not have a centralized server
or repository.
The content in Git is stored as metadata; SVN stores files of content.
Git branches are easier to work with than SVN branches.
Git does not have the global revision number feature like SVN has.
Git has better content protection than SVN.
Git was developed for Linux kernel by Linus Torvalds; SVN was developed by
CollabNet, Inc.
Git is distributed under GNU, and its maintenance overseen by Junio
Hamano; Apache Subversion, or SVN, is distributed under the open source license

You might also like