Git远程仓库

2017-06-16

远程仓库是指托管在网络上的项目仓库,可能会有好多个,其中有些你只能读,另外有些可以写。同他人协作开发某个项目时,需要管理这些远程仓库,以便推送或拉取数据,分享各自的工作进展。 管理远程仓库的工作,包括添加远程库,移除废弃的远程库,管理各式远程库分支,定义是否跟踪这些分支,等等。

Read More »

Git版本回退

2017-06-13

Git中,每次commit提交都会生成一个历史纪录。使用 git log 查看commit历史:

1
2
3
4
5
6
7
8
9
10
$ git log --oneline 
ec88247 modifyed bar.html,foo.txt add new.txt
47384c8 modify bar.html in clone again
31e1f6f modify foo.txt in original again
8747b24 Merge branch 'master' of /home/mrbird/projects/first-project
27b76ec modify foo.txt in original
796e40d modify bar.html in clone
8e1b132 modify foo.txt,add 'hello msg'
94418b1 add bar.html,modify foo.txt,delete bar.txt
c2e4810 add foo.txt bar.txt

Read More »

Git状态跟踪

2017-06-12

对于任何一个文件,在 Git 内都只有三种状态:已提交(committed),已修改(modified)和已暂存(staged)。

1.已提交:表示该文件已经被安全地保存在版本库中了。

2.已修改:表示修改了某个文件,但还没有提交到暂存区。

3.已暂存:表示把已修改的文件已经放到暂存区了,下次提交时一并被保存到版本库中。

检查当前文件状态

要确定哪些文件当前处于什么状态,可以用 git status 命令。

1
2
3
4
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

Read More »

父子页面元素的获取与方法的调用[转]

2017-06-08

javaScript

子页面调用父页面方法:

格式:parent.父页面方法

实例:parent.pClick(); // pClick 为父页面 js 方法

子页面获取父页面元素:

格式:window.parent.document.getElementById(“父窗口元素ID”);

实例:window.parent.document.getElementById(“pBtnOk”);// pBtnOk为父页面标签 id

Read More »


CSS3颜色属性

2017-06-05

opacity

opacity用来设置元素的透明度。取值范围为0~1,0表示完全透明,1表示不透明。

RGBA

RGBA是在RGB基础上增加了控制alpha透明度的参数。基本语法如下:

1
rgba(R,G,B,A)

Read More »

CSS3文本属性

2017-06-04

text-shadow

该属性用于设置文字阴影效果,基本语法如下:

1
text-shadow:[颜色 x轴 y轴 模糊半径],[颜色 x轴 y轴 模糊半径]...

Read More »

Leanote博客添加过渡动画

2017-06-01

为了提高博客用户体验,我们可以为其添加一些动画效果。这篇博文主要介绍如何添加页面切换动画以及页面加载动画。需要用到的插件:

Animsition.js:http://git.blivesta.com/animsition/

Loader.css:https://connoratherton.com/loaders

页面切换动画

首先从https://github.com/blivesta/animsition上下载插件包,解压后在博客主题中引入animsition.css和animsition.js:

1
2
<script src="{{$.themeBaseUrl}}/animsition.js"></script>
<link href="{{$.themeBaseUrl}}/animsition.css" rel="stylesheet">

Read More »

Git使用入门

2017-05-27

准备Git环境

首先在ubuntu中查看是否安装了Git:

1
2
3
$ git
The program 'git' is currently not installed. You can install it by typing:
sudo apt install git

linux提示尚未安装Git,并提供了安装的指令:sudo apt install git。第一次使用Git需要设置个人信息,如用户名邮箱等:

1
2
$ git config --global user.name "mrbird"
$ git config --global user.email "mrbird@leanote.com"

Read More »

1…293031…45
Hosted  by  Coding Pages
MrBird
MrBird

A simple blog, code repository, just keep blogging

14 Archives 2 Labels
  • 🏠 Home
  • 📦 Archives
  • 🔖 Labels
  • 👬 Friends
  • 🔍 Search
  •   UV    PV 
    0