Skip to content

Commit

Permalink
auto commit
Browse files Browse the repository at this point in the history
  • Loading branch information
CyC2018 committed Apr 9, 2018
1 parent a589bd2 commit bee393f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion notes/Git.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Git 版本库有一个称为 stage 的暂存区,还有自动创建的 master

- git add files 把文件的修改添加到暂存区
- git commit 把暂存区的修改提交到当前分支,提交之后暂存区就被清空了
- git reset -- files 使用当前分支上的修改覆盖暂缓区,用来撤销最后一次 git reset files
- git reset -- files 使用当前分支上的修改覆盖暂缓区,用来撤销最后一次 git add files
- git checkout -- files 使用暂存区的修改覆盖工作目录,用来撤销本地修改

<div align="center"> <img src="../pics//17976404-95f5-480e-9cb4-250e6aa1d55f.png"/> </div><br>
Expand Down
6 changes: 3 additions & 3 deletions notes/剑指 offer 题解.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,15 +393,15 @@ public void push(int node) {
in.push(node);
}

public int pop() throws Exception{
public int pop() {
if (out.isEmpty()) {
while (!in.isEmpty()) {
out.push(in.pop());
}
if (out.isEmpty()){
}
if (out.isEmpty()){
throw new Exception("queue is empty");
}
}
return out.pop();
}
```
Expand Down

0 comments on commit bee393f

Please sign in to comment.