You are on page 1of 20

git config --global user.

name "Sam Smith"


git config --global user.email sma@example.com
git init
git clone /path/to/repository
git clone username@host:/path/to/repository
git add <filename>
git add *
git commit - m "Commit message"
git commit -a
git push origin master
git status
git remote add origin <server>
git remote -v
git checkout -b <branchname>
git checkout <branchnam>
git branch
git branch -d <branchname>
git push origin <branchname>
git push --all origin
git push origin : <branchname>
git pull
git merge <branchname>
git diff
git diff -base <filename>
git diff <sourcebranch> <targetbranch>
git add <filename>
git tag 1.0.0 <commitID>
git log
git push --tags origin
git checkout -- <filename>
git fetch origin git reset --har origin/master
git stash
git pull
git stash pop
git stash list --pretty=format:'%Cblue%gd%Cred: %C(yellow)%s'
git pull
git grep "foo()"
git config --global user.name "Sam Smith"
git config --global user.email sma@example.com
git init
git clone /path/to/repository
git clone username@host:/path/to/repository
git add <filename>
git add *
git commit - m "Commit message"
git commit -a
git push origin master
git status
git remote add origin <server>
git remote -v
git checkout -b <branchname>
git checkout <branchnam>
git branch
git branch -d <branchname>
git push origin <branchname>
git push --all origin
git push origin : <branchname>
git pull
git merge <branchname>
git diff
git diff -base <filename>
git diff <sourcebranch> <targetbranch>
git add <filename>
git tag 1.0.0 <commitID>
git log
git push --tags origin
git checkout -- <filename>
git fetch origin git reset --har origin/master
git grep "foo()"
git config --global user.name "Sam Smith"
git config --global user.email sma@example.com
git init
git clone /path/to/repository
git clone username@host:/path/to/repository
git add <filename>
git add *
git commit - m "Commit message"
git commit -a
git push origin master
git status
git remote add origin <server>
git remote -v
git checkout -b <branchname>
git checkout <branchnam>
git branch
git branch -d <branchname>
git push origin <branchname>
git push --all origin
git push origin : <branchname>
git pull
git merge <branchname>
git diff
git diff -base <filename>
git diff <sourcebranch> <targetbranch>
git add <filename>
git tag 1.0.0 <commitID>
git log
git push --tags origin
git checkout -- <filename>
git fetch origin git reset --har origin/master
git grep "foo()"
git config --global user.name "Sam Smith"
git config --global user.email sma@example.com
git init
git clone /path/to/repository
git clone username@host:/path/to/repository
git add <filename>
git add *
git commit - m "Commit message"
git commit -a
git push origin master
git status
git remote add origin <server>
git remote -v
git checkout -b <branchname>
git checkout <branchnam>
git branch
git branch -d <branchname>
git push origin <branchname>
git push --all origin
git push origin : <branchname>
git pull
git merge <branchname>
git diff
git diff -base <filename>
git diff <sourcebranch> <targetbranch>
git add <filename>
git tag 1.0.0 <commitID>
git log
git push --tags origin
git checkout -- <filename>
git fetch origin git reset --har origin/master
git grep "foo()"
git config --global user.name "Sam Smith"
git config --global user.email sma@example.com
git init
git clone /path/to/repository
git clone username@host:/path/to/repository
git add <filename>
git add *
git commit - m "Commit message"
git commit -a
git push origin master
git status
git remote add origin <server>
git remote -v
git checkout -b <branchname>
git checkout <branchnam>
git branch
git branch -d <branchname>
git push origin <branchname>
git push --all origin
git push origin : <branchname>
git pull
git merge <branchname>
git diff
git diff -base <filename>
git diff <sourcebranch> <targetbranch>
git add <filename>
git tag 1.0.0 <commitID>
git log
git push --tags origin
git checkout -- <filename>
git fetch origin git reset --har origin/master
git grep "foo()"
git config --global user.name "Sam Smith"
git config --global user.email sma@example.com
git init
git clone /path/to/repository
git clone username@host:/path/to/repository
git add <filename>
git add *
git commit - m "Commit message"
git commit -a
git push origin master
git status
git remote add origin <server>
git remote -v
git checkout -b <branchname>
git checkout <branchnam>
git branch
git branch -d <branchname>
git push origin <branchname>
git push --all origin
git push origin : <branchname>
git pull
git merge <branchname>
git diff
git diff -base <filename>
git diff <sourcebranch> <targetbranch>
git add <filename>
git tag 1.0.0 <commitID>
git log
git push --tags origin
git checkout -- <filename>
git fetch origin git reset --har origin/master
git grep "foo()"
git --help
git --help command
git add path/filenma
git add file1 file2 file3
git add -update
git add --all
git blame filename
git branch -a
git checkout parentePath/filename
git checkout master
git checkout e3b4d63
git clean -df
git clean -df
git -n clean
git -dn clean
git clone http://git.megacorp.com/git/repo/projetx.git
git clone ssh://user@git.megacorp.com:/srv/git/repo/projectx.git
git commit
git commit dir-path/filenam
git commit -m "Message goes here." filename
git config --global user.name "John Doe"
git config --global user.email jdoe@megacorp.com
git config -l
git config --global --unset user.password
git diff
git diff e3b43d63 60fdba79 directory/path
git gc
git log
git log --oneline
git log directory/path/file
git log --author="name"
git log --graph --decorate --oneline
git ls-files --stage
git ls-files --cached
git ls-files --modified
git ls-files --others
git ls-files --deleted
git ls-files --unmerged
git ls-files --killed
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git --help
git --help command
git add path/filenma
git add file1 file2 file3
git add -update
git add --all
git blame filename
git branch -a
git checkout parentePath/filename
git checkout master
git checkout e3b4d63
git clean -df
git clean -df
git -n clean
git -dn clean
git clone http://git.megacorp.com/git/repo/projetx.git
git clone ssh://user@git.megacorp.com:/srv/git/repo/projectx.git
git commit
git commit dir-path/filenam
git commit -m "Message goes here." filename
git config --global user.name "John Doe"
git config --global user.email jdoe@megacorp.com
git config -l
git config --global --unset user.password
git diff
git diff e3b43d63 60fdba79 directory/path
git gc
git log
git log --oneline
git log directory/path/file
git log --author="name"
git log --graph --decorate --oneline
git ls-files --stage
git ls-files --cached
git ls-files --modified
git ls-files --others
git ls-files --deleted
git ls-files --unmerged
git ls-files --killed
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git --help
git --help command
git add path/filenma
git add file1 file2 file3
git add -update
git add --all
git blame filename
git branch -a
git checkout parentePath/filename
git checkout master
git checkout e3b4d63
git clean -df
git clean -df
git -n clean
git -dn clean
git clone http://git.megacorp.com/git/repo/projetx.git
git clone ssh://user@git.megacorp.com:/srv/git/repo/projectx.git
git commit
git commit dir-path/filenam
git commit -m "Message goes here." filename
git config --global user.name "John Doe"
git config --global user.email jdoe@megacorp.com
git config -l
git config --global --unset user.password
git diff
git diff e3b43d63 60fdba79 directory/path
git gc
git log
git log --oneline
git log directory/path/file
git log --author="name"
git log --graph --decorate --oneline
git ls-files --stage
git ls-files --cached
git ls-files --modified
git ls-files --others
git ls-files --deleted
git ls-files --unmerged
git ls-files --killed
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git --help
git --help command
git add path/filenma
git add file1 file2 file3
git add -update
git add --all
git blame filename
git branch -a
git checkout parentePath/filename
git checkout master
git checkout e3b4d63
git clean -df
git clean -df
git -n clean
git -dn clean
git clone http://git.megacorp.com/git/repo/projetx.git
git clone ssh://user@git.megacorp.com:/srv/git/repo/projectx.git
git commit
git commit dir-path/filenam
git commit -m "Message goes here." filename
git config --global user.name "John Doe"
git config --global user.email jdoe@megacorp.com
git config -l
git config --global --unset user.password
git diff
git diff e3b43d63 60fdba79 directory/path
git gc
git log
git log --oneline
git log directory/path/file
git log --author="name"
git log --graph --decorate --oneline
git ls-files --stage
git ls-files --cached
git ls-files --modified
git ls-files --others
git ls-files --deleted
git ls-files --unmerged
git ls-files --killed
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git --help
git --help command
git add path/filenma
git add file1 file2 file3
git add -update
git add --all
git blame filename
git branch -a
git checkout parentePath/filename
git checkout master
git checkout e3b4d63
git clean -df
git clean -df
git -n clean
git -dn clean
git clone http://git.megacorp.com/git/repo/projetx.git
git clone ssh://user@git.megacorp.com:/srv/git/repo/projectx.git
git commit
git commit dir-path/filenam
git commit -m "Message goes here." filename
git config --global user.name "John Doe"
git config --global user.email jdoe@megacorp.com
git config -l
git config --global --unset user.password
git diff
git diff e3b43d63 60fdba79 directory/path
git gc
git log
git log --oneline
git log directory/path/file
git log --author="name"
git log --graph --decorate --oneline
git ls-files --stage
git ls-files --cached
git ls-files --modified
git ls-files --others
git ls-files --deleted
git ls-files --unmerged
git ls-files --killed
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git --help
git --help command
git add path/filenma
git add file1 file2 file3
git add -update
git add --all
git blame filename
git branch -a
git checkout parentePath/filename
git checkout master
git checkout e3b4d63
git clean -df
git clean -df
git -n clean
git -dn clean
git clone http://git.megacorp.com/git/repo/projetx.git
git clone ssh://user@git.megacorp.com:/srv/git/repo/projectx.git
git commit
git commit dir-path/filenam
git commit -m "Message goes here." filename
git config --global user.name "John Doe"
git config --global user.email jdoe@megacorp.com
git config -l
git config --global --unset user.password
git diff
git diff e3b43d63 60fdba79 directory/path
git gc
git log
git log --oneline
git log directory/path/file
git log --author="name"
git log --graph --decorate --oneline
git ls-files --stage
git ls-files --cached
git ls-files --modified
git ls-files --others
git ls-files --deleted
git ls-files --unmerged
git ls-files --killed
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git --help
git --help command
git add path/filenma
git add file1 file2 file3
git add -update
git add --all
git blame filename
git branch -a
git checkout parentePath/filename
git checkout master
git checkout e3b4d63
git clean -df
git clean -df
git -n clean
git -dn clean
git clone http://git.megacorp.com/git/repo/projetx.git
git clone ssh://user@git.megacorp.com:/srv/git/repo/projectx.git
git commit
git commit dir-path/filenam
git commit -m "Message goes here." filename
git config --global user.name "John Doe"
git config --global user.email jdoe@megacorp.com
git config -l
git config --global --unset user.password
git diff
git diff e3b43d63 60fdba79 directory/path
git gc
git log
git log --oneline
git log directory/path/file
git log --author="name"
git log --graph --decorate --oneline
git ls-files --stage
git ls-files --cached
git ls-files --modified
git ls-files --others
git ls-files --deleted
git ls-files --unmerged
git ls-files --killed
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git clone _.git
git clone _.git
git remote add upstream _.git
git branch <branchName>
git checkout <branchName>
git checkout master
git clone --depth=1 _.git
git config remote.origin.fetch
git fetch --unshallow
git config user.name
git config user.email
git config --global user.name "Your Name"
git config user.name "Your Name"
git config user.email "your_email@example.com"
git config --list --show-origin
git config --system --edit
git config --local -l
git commit --amend --no-edit --date="Fri Nov 6 20:00:00 2016 -0600"
git add <file>
git commit --amend -C HEAD
git commit -am "Message"
git show <commit_id>
git show --stat <commit_id>
git push
git push origin master
git pull upstream master
git branch <branchName>
git checkout <branchName>
git checkout master
git checkout -b my_new_branch
git push -u origin my_new_branch
git push origin my_new_branch
git checkout --track origin/<branchName>
git checkout <branchName>
git merge master
git merge --abort
git branch -d my_new_branch
git push origin :my_new_branch
git remote prune origin --dry-run
git show-branch -a --list
git merge <branchName> --log=20 --no-ff
git revert HEAD
git revert HEAD~1
git fetch --all
git reset --hard origin/<branchName
git tag
git tag -a TagName -m "Message"
git tag -d TagName
git push origin TagName
git checkout master
git pull upstream master
git push origin master
git checkout -b new_branch
git push -u origin new_branch
git checkout branch_name
git merge master
git mergetool
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git --help
git --help command
git add path/filenma
git add file1 file2 file3
git add -update
git add --all
git blame filename
git branch -a
git checkout parentePath/filename
git checkout master
git checkout e3b4d63
git clean -df
git clean -df
git -n clean
git -dn clean
git clone http://git.megacorp.com/git/repo/projetx.git
git clone ssh://user@git.megacorp.com:/srv/git/repo/projectx.git
git commit
git commit dir-path/filenam
git commit -m "Message goes here." filename
git config --global user.name "John Doe"
git config --global user.email jdoe@megacorp.com
git config -l
git config --global --unset user.password
git diff
git diff e3b43d63 60fdba79 directory/path
git gc
git log
git log --oneline
git log directory/path/file
git log --author="name"
git log --graph --decorate --oneline
git ls-files --stage
git ls-files --cached
git ls-files --modified
git ls-files --others
git ls-files --deleted
git ls-files --unmerged
git ls-files --killed
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git clone _.git
git clone _.git
git remote add upstream _.git
git branch <branchName>
git checkout <branchName>
git checkout master
git clone --depth=1 _.git
git config remote.origin.fetch
git fetch --unshallow
git config user.name
git config user.email
git config --global user.name "Your Name"
git config user.name "Your Name"
git config user.email "your_email@example.com"
git config --list --show-origin
git config --system --edit
git config --local -l
git commit --amend --no-edit --date="Fri Nov 6 20:00:00 2016 -0600"
git add <file>
git commit --amend -C HEAD
git commit -am "Message"
git show <commit_id>
git show --stat <commit_id>
git push
git push origin master
git pull upstream master
git branch <branchName>
git checkout <branchName>
git checkout master
git checkout -b my_new_branch
git push -u origin my_new_branch
git push origin my_new_branch
git checkout --track origin/<branchName>
git checkout <branchName>
git merge master
git merge --abort
git branch -d my_new_branch
git push origin :my_new_branch
git remote prune origin --dry-run
git show-branch -a --list
git merge <branchName> --log=20 --no-ff
git revert HEAD
git revert HEAD~1
git fetch --all
git reset --hard origin/<branchName
git tag
git tag -a TagName -m "Message"
git tag -d TagName
git push origin TagName
git checkout master
git pull upstream master
git push origin master
git checkout -b new_branch
git push -u origin new_branch
git checkout branch_name
git merge master
git mergetool
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git --help
git --help command
git add path/filenma
git add file1 file2 file3
git add -update
git add --all
git blame filename
git branch -a
git checkout parentePath/filename
git checkout master
git checkout e3b4d63
git clean -df
git clean -df
git -n clean
git -dn clean
git clone http://git.megacorp.com/git/repo/projetx.git
git clone ssh://user@git.megacorp.com:/srv/git/repo/projectx.git
git commit
git commit dir-path/filenam
git commit -m "Message goes here." filename
git config --global user.name "John Doe"
git config --global user.email jdoe@megacorp.com
git config -l
git config --global --unset user.password
git diff
git diff e3b43d63 60fdba79 directory/path
git gc
git log
git log --oneline
git log directory/path/file
git log --author="name"
git log --graph --decorate --oneline
git ls-files --stage
git ls-files --cached
git ls-files --modified
git ls-files --others
git ls-files --deleted
git ls-files --unmerged
git ls-files --killed
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git clone _.git
git clone _.git
git remote add upstream _.git
git branch <branchName>
git checkout <branchName>
git checkout master
git clone --depth=1 _.git
git config remote.origin.fetch
git fetch --unshallow
git config user.name
git config user.email
git config --global user.name "Your Name"
git config user.name "Your Name"
git config user.email "your_email@example.com"
git config --list --show-origin
git config --system --edit
git config --local -l
git commit --amend --no-edit --date="Fri Nov 6 20:00:00 2016 -0600"
git add <file>
git commit --amend -C HEAD
git commit -am "Message"
git show <commit_id>
git show --stat <commit_id>
git push
git push origin master
git pull upstream master
git branch <branchName>
git checkout <branchName>
git checkout master
git checkout -b my_new_branch
git push -u origin my_new_branch
git push origin my_new_branch
git checkout --track origin/<branchName>
git checkout <branchName>
git merge master
git merge --abort
git branch -d my_new_branch
git push origin :my_new_branch
git remote prune origin --dry-run
git show-branch -a --list
git merge <branchName> --log=20 --no-ff
git revert HEAD
git revert HEAD~1
git fetch --all
git reset --hard origin/<branchName
git tag
git tag -a TagName -m "Message"
git tag -d TagName
git push origin TagName
git checkout master
git pull upstream master
git push origin master
git checkout -b new_branch
git push -u origin new_branch
git checkout branch_name
git merge master
git mergetool
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git --help
git --help command
git add path/filenma
git add file1 file2 file3
git add -update
git add --all
git blame filename
git branch -a
git checkout parentePath/filename
git checkout master
git checkout e3b4d63
git clean -df
git clean -df
git -n clean
git -dn clean
git clone http://git.megacorp.com/git/repo/projetx.git
git clone ssh://user@git.megacorp.com:/srv/git/repo/projectx.git
git commit
git commit dir-path/filenam
git commit -m "Message goes here." filename
git config --global user.name "John Doe"
git config --global user.email jdoe@megacorp.com
git config -l
git config --global --unset user.password
git diff
git diff e3b43d63 60fdba79 directory/path
git gc
git log
git log --oneline
git log directory/path/file
git log --author="name"
git log --graph --decorate --oneline
git ls-files --stage
git ls-files --cached
git ls-files --modified
git ls-files --others
git ls-files --deleted
git ls-files --unmerged
git ls-files --killed
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git clone _.git
git clone _.git
git remote add upstream _.git
git branch <branchName>
git checkout <branchName>
git checkout master
git clone --depth=1 _.git
git config remote.origin.fetch
git fetch --unshallow
git config user.name
git config user.email
git config --global user.name "Your Name"
git config user.name "Your Name"
git config user.email "your_email@example.com"
git config --list --show-origin
git config --system --edit
git config --local -l
git commit --amend --no-edit --date="Fri Nov 6 20:00:00 2016 -0600"
git add <file>
git commit --amend -C HEAD
git commit -am "Message"
git show <commit_id>
git show --stat <commit_id>
git push
git push origin master
git pull upstream master
git branch <branchName>
git checkout <branchName>
git checkout master
git checkout -b my_new_branch
git push -u origin my_new_branch
git push origin my_new_branch
git checkout --track origin/<branchName>
git checkout <branchName>
git merge master
git merge --abort
git branch -d my_new_branch
git push origin :my_new_branch
git remote prune origin --dry-run
git show-branch -a --list
git merge <branchName> --log=20 --no-ff
git revert HEAD
git revert HEAD~1
git fetch --all
git reset --hard origin/<branchName
git tag
git tag -a TagName -m "Message"
git tag -d TagName
git push origin TagName
git checkout master
git pull upstream master
git push origin master
git checkout -b new_branch
git push -u origin new_branch
git checkout branch_name
git merge master
git mergetool
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git --help
git --help command
git add path/filenma
git add file1 file2 file3
git add -update
git add --all
git blame filename
git branch -a
git checkout parentePath/filename
git checkout master
git checkout e3b4d63
git clean -df
git clean -df
git -n clean
git -dn clean
git clone http://git.megacorp.com/git/repo/projetx.git
git clone ssh://user@git.megacorp.com:/srv/git/repo/projectx.git
git commit
git commit dir-path/filenam
git commit -m "Message goes here." filename
git config --global user.name "John Doe"
git config --global user.email jdoe@megacorp.com
git config -l
git config --global --unset user.password
git diff
git diff e3b43d63 60fdba79 directory/path
git gc
git log
git log --oneline
git log directory/path/file
git log --author="name"
git log --graph --decorate --oneline
git ls-files --stage
git ls-files --cached
git ls-files --modified
git ls-files --others
git ls-files --deleted
git ls-files --unmerged
git ls-files --killed
git ls-remote -h http://domain/git/repo/projetx.git
git merge branch-name
git merge --abort
git mv file-oldl-name file-new-name
git mergetool
git pull origin master
git push origin master
git remote -v
git reset HEAD^ path/filename
git reset HEAD~1 path/filename
git reset --hard HEAD^ path/filename
git revert HEAD
git rm filename
git rm -r directory/path
git status
git tag -a April_Sprint -m "Source used for April sprint demo"
git clone _.git
git clone _.git
git remote add upstream _.git
git branch <branchName>
git checkout <branchName>
git checkout master
git clone --depth=1 _.git
git config remote.origin.fetch
git fetch --unshallow
git config user.name
git config user.email
git config --global user.name "Your Name"
git config user.name "Your Name"
git config user.email "your_email@example.com"
git config --list --show-origin
git config --system --edit
git config --local -l
git commit --amend --no-edit --date="Fri Nov 6 20:00:00 2016 -0600"
git add <file>
git commit --amend -C HEAD
git commit -am "Message"
git show <commit_id>
git show --stat <commit_id>
git push
git push origin master
git pull upstream master
git branch <branchName>
git checkout <branchName>
git checkout master
git checkout -b my_new_branch
git push -u origin my_new_branch
git push origin my_new_branch
git checkout --track origin/<branchName>
git checkout <branchName>
git merge master
git merge --abort
git branch -d my_new_branch
git push origin :my_new_branch
git remote prune origin --dry-run
git show-branch -a --list
git merge <branchName> --log=20 --no-ff
git revert HEAD
git revert HEAD~1
git fetch --all
git reset --hard origin/<branchName
git tag
git tag -a TagName -m "Message"
git tag -d TagName
git push origin TagName
git checkout master
git pull upstream master
git push origin master
git checkout -b new_branch
git push -u origin new_branch
git checkout branch_name
git merge master
git mergetool

You might also like