hjson Git备忘单

一堆git命令

git-cheat-sheet.sh
// Pulling remote (equivilant of $ git pull)
$ git fetch
$ git merge

// Check whats due for checking in
$ git status

// Check in
$ git add <files>
$ git commit (#optional -m "message here")
$ git push

// create a new branch
$ git branch <name_of_branch>

//Create and change to new branch: 
$ git checkout -b branchname

//push local branch to remote
$ git push --set-upstream origin <name_of_branch>

// reject all changes in local master
$ git reset --hard

//reset from head
$ git checkout <file>
or
$ git reset -- <file>
$ git reset -- <folder>/*

//Staging files
$ git add -A //stages All
$ git add . //stages new and modified, without deleted
$ git add -u //stages modified and deleted, without new

//get remote branch to local
$ git fetch
$ git checkout <branch_name>

//delete branches
$ git branch -d branch_name // delete branch that is merged in HEAD from local 
$ git branch -D branch_name // force delete branch from local
$ git push <remote_name> --delete <branch_name> // delete from remote

// retrieve all commits on a specific line
$ git log -L 155,155:git-web--browse.sh

// create ssh key for github
$ ssh-keygen

// change git url
$ git remote set-url origin git://new.url.here

// --all will fetch all the remotes.
// --tags will fetch all tags as well
$ git fetch --all --tags --prune

//Then check out the tag by running
$ git checkout tags/<tag_name> -b <branch_name>

//If you are on the branch you want to rename
$ git branch -m new-name

//If you are on a different branch
$ git branch -m old-name new-name

//delete all local branches except for master
$ git branch | grep -v "master" | xargs git branch -D 

# undo/ignore all permission changes on folders 
$ git diff --summary | grep --color 'mode change 100755 => 100644' | cut -d' ' -f7- | xargs -d'\n' chmod +x
$ git diff --summary | grep --color 'mode change 100644 => 100755' | cut -d' ' -f7- | xargs -d'\n' chmod -x

//use kdiff on file from 2 branches compare
$ git difftool mybranch master -- myfile.cs

# reset single file
$ git checkout HEAD -- my-file.txt

hjson 向下滚动雪佛龙

css
body {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 100%;
  height: 100%;
  background: #333;
}

.container {
  position: relative;
  width: 24px;
  height: 24px;
}

.chevron {
  position: absolute;
  width: 28px;
  height: 8px;
  opacity: 0;
  transform: scale3d(0.5, 0.5, 0.5);
  animation: move 3s ease-out infinite;
}

.chevron:first-child {
  animation: move 3s ease-out 1s infinite;
}

.chevron:nth-child(2) {
  animation: move 3s ease-out 2s infinite;
}

.chevron:before,
.chevron:after {
  content: ' ';
  position: absolute;
  top: 0;
  height: 100%;
  width: 51%;
  background: #fff;
}

.chevron:before {
  left: 0;
  transform: skew(0deg, 30deg);
}

.chevron:after {
  right: 0;
  width: 50%;
  transform: skew(0deg, -30deg);
}

@keyframes move {
  25% {
    opacity: 1;

  }
  33% {
    opacity: 1;
    transform: translateY(30px);
  }
  67% {
    opacity: 1;
    transform: translateY(40px);
  }
  100% {
    opacity: 0;
    transform: translateY(55px) scale3d(0.5, 0.5, 0.5);
  }
}

.text {
  display: block;
  margin-top: 75px;
  margin-left: -30px;
  font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
  font-size: 12px;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .25;
  animation: pulse 2s linear alternate infinite;
}

@keyframes pulse {
  to {
    opacity: 1;
  }
}
html
div class="container">
  <div class="chevron"></div>
  <div class="chevron"></div>
  <div class="chevron"></div>
  <span class="text">Scroll down</span>
</div>