Git command I use to streamline my daily job
Git workflow- link
git config --global user.email "you@example.com"
git config --global user.name "your name"
git config user.email "you@example.com"`
git config user.name "your name"
git config --list
git config user.name
git config user.email
git remote -v
git init
git add --all
git commit -m "initial commit"
git remote add origin https://username@your.bitbucket.domain:7999/yourproject/repo.git
git push -u origin master
git remote set-url origin https://username@your.bitbucket.domain:7999/yourproject/repo.git
git fetch && git checkout development
git add .
git commit -m "your message"
git push origin development
git tag v1.0.0_20170503 /git tag -a v1.0.0_20180423 -m "tag for release v1.0.0"
git push origin --tags
git checkout -b <branch_name>
git push -u origin <branch_name>
git checkout development
git merge firebase_crash_reporting
git add .
git commit -m "added firebase_crash_reporting"
git push origin development
git checkout .
git config --global merge.tool meld
git config --global mergetool.meld.path "C:\Program Files (x86)\Meld\Meld.exe" <- path to meld here
git mergetool
git commit -am 'merged from several branches'
git tag -d <tag_name>
git tag
git init
git remote set-url origin git://new.url.here
git remote show origin
git log -1
git show
git fetch --all
git pull origin master
git merge --abort
git tag
git diff --name-only --diff-filter=U
git status -uno
git tag
git show <tagname>
git tag -d <tagname>
git push origin -d <tagname>
git checkout -b <branch name> <tag name>
git checkout --track origin/dev
git log -1
fatal: refuse to merge unrelated histories on every especially first pull request after remotely adding a git repo
git pull origin branchname --allow-unrelated-histories
git checkout -b feature_branch_name
git push -u origin feature_branch_name
git commit --amend
git reset