1PHAN's blog

首页

关于

归档

loading..
git学习

git学习下的一些基本操作

基础操作git clone [ssh] # 执行 git status 查看整个仓库的状态 git status # 使用 git add [文件名] 命令跟踪此新建文件,即把新增文件添加到暂存区,以备提交 git add one.txt # 如果要撤销暂存区的修改怎么办? # 根据上图的提示,执行 git reset -- [文件名] 或者 git rm --cached [文件名] 命令即可 git reset -- one.txt # 用于查看 Git 仓库中所有分支(包括本地和远程分支)详细信息的命令。 git branch -avv # 执行 git commit 命令生成一个新的提交,一个必须的选项 -m 用来提供该提交的备注 git commit -m 'commit one' ..

更多

实验四(1) 创建一个目录,目录名用学号命名: hdfs dfs -mkdir /201612345 (2) 查看该目录是否成功创建: hdfs dfs -ls / (3) 创建一个文本文件并上传到HDFS: echo "hello hdfs" > /usr/local/hadoop/zhangsan.txt hdfs dfs -put /usr/local/hadoop/zhangsan.txt /201612345/ (4) 将该文件上传到HDFS的学号目录中: 这已经在第三步中完成。 (5) 查看该文件是否成功上传到HDFS中: hdfs dfs -ls /201612345 (6) 将该文件从HDFS下载到本地目录: hdfs dfs -get /201612345/zhangsan...

更多
loading..

1 基本语法1.1 String在Java中,String 类是用于表示字符串的类,它提供了丰富的方法和功能来操作字符串。字符串是一组字符的序列,而在Java中,字符串是不可变的,这意味着一旦创建了字符串,就不能更改其内容。 以下是一些常用的 String 类的用法和示例: 1. 创建字符串可以通过直接赋值或使用构造函数创建字符串对象: String str1 = "Hello, World!"; // 使用直接赋值创建字符串 String str2 = new String("Hello, World!"); // 使用构造函数创建字符串 2. 获取字符串长度可以使用 length() 方法获取字符串的长度: String str = "Hello, World!"; int length = st..

更多

发现了一只乖乖猪~

更多

大标题小标题正文 #include <isotream>

更多

Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post$ hexo new "My New Post" More info: Writing Run server$ hexo server More info: Server Generate static files$ hexo generate More info..

更多
1678