mirror of
https://github.com/denisidoro/navi
synced 2024-11-24 20:43:06 +00:00
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:
commit
28597037c6
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue