Merge pull request #87 from engrravijain/master

The commands added are as under:-

1. cloning a git repository
2. view remote information
3. Renaming a remote
4. Remove a remote
5. Abort the git merge process
This commit is contained in:
Denis Isidoro 2019-09-27 14:32:33 -03:00 committed by GitHub
commit 28597037c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,9 +9,21 @@ git config --global user.email <email>
# Initializes a git repository
git init
# Clone a git repository
git clone -b <branch_name> <repository> <clone_directory>
# View all available remote for a git repository
git remote --verbose
# Adds a remote for a git repository
git remote add <remote_name> <remote_url>
# Renames a remote for a git repository
git remote rename <old_remote_name> <new_remote_name>
# Remove a remote for a git repository
git remote remove <remote_name>
# Checkout to branch
# Change branch
git checkout <branch>
@ -46,6 +58,9 @@ git pull --ff-only
# Merges changes on one branch into current branch
git merge <branch_name>
# Abort the current conflict resolution process, and try to reconstruct the pre-merge state.
git merge --abort
# Displays log of commits for a repo
git log