Skip to content

LeeDa16/hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

hello-world

I am one with the knowledge. May the knowledge be with me.

git常用命令

在当前目录新建一个Git代码库

$ git init

新建一个目录,将其初始化为Git代码库

$ git init [project-name]

下载一个项目和它的整个代码历史

$ git clone [url]

添加当前目录的所有文件到暂存区

$ git add .

切换分支

$ git checkout [branch-name]

创建分支

$ git checkout -b [branch-name]

列出所有本地分支和远程分支

$ git branch -a

合并指定分支到当前分支

$ git merge [branch]

删除分支

$ git branch -d [branch-name]

上传本地指定分支到远程仓库

$ git push [remote]/origin.../ [branch]

列出所有文件名

$ ls

打开目录

$ cd [目录名]

返回上一目录

$ cd ..

新建文件

$ vim [文件名.后缀名]

新建文件夹

$ mkdir [文件夹名]

删除文件

$ rm [文件名]

删除文件夹

$ git rm -rf [文件夹名]

常用命令行

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published