<tag>...</tag>
<tag/>
<div>...</div>
<span>...</span>
<h?>...</h?>
<a>...</a>
<img/>
<input/>
<link/>
display: block
display: inline
Visibility
position, overflow, float, z-index
transition, animation
$ git clone <your_repo_uri>
$ cd ~/.ssh
$ ls
id_rsa id_rsa.pub
Check:
$ ssh-keygen
Generate:
$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkD...
Show pub key:
$ git config --global --list
user.name=Anton Bely
user.email=anton.bely@iii.com
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
Global config:
$ git remote
origin
$ git remote -v
origin git@bitbucket.org:randiii/conv-ui-patrons.git (fetch)
origin git@bitbucket.org:randiii/conv-ui-patrons.git (push)
$ git remote get-url origin
git@bitbucket.org:randiii/conv-ui-patrons.git
Remote list:
$ git branch
feature/DIS-5708-checkouts
feature/DIS-7149-update-navigation
* master
Show all branches:
$ git branch feature-branch
$ git branch
feature-branch
feature/DIS-5708-checkouts
feature/DIS-7149-update-navigation
* master
$ git checkout feature-branch
Switched to branch 'feature-branch'
Create & checkout:
$ git checkout -b awesome-feature
Switched to a new branch 'awesome-feature'
A little bit shorter:
$ git checkout feature
$ git merge master
$ git merge master feature
$ git checkout feature
$ git rebase master
$ git checkout feature
$ git rebase -i master
pick 33d5b7a Message for commit #1
pick 9480b3d Message for commit #2
pick 5c67e61 Message for commit #3
pick 33d5b7a Message for commit #1
fixup 9480b3d Message for commit #2
pick 5c67e61 Message for commit #3
$ git push
$ git push --force
After merge:
After rebase:
* Be very careful with --force flag
$ git checkout feature
$ git rebase -i HEAD~3
Merge
Rebase
$ git checkout <hash_of_commit_b>
$ git checkout HEAD~2 some_file.txt
$ git revert <commit>
$ git checkout hotfix
$ git reset HEAD~2
$ git commit --amend
$ git commit --amend -m "an updated commit message"
$ git commit --amend --no-edit
$ git checkout staging
$ git cherry-pick <commit_hash>