mirror of
https://github.com/denisidoro/navi
synced 2024-11-10 22:14:15 +00:00
git commands
This commit is contained in:
parent
bfcca8f3c8
commit
19f2308964
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