百度ai
github https://github.com/xieerduos/baiduAI
git github 入門使用步驟
# 1. 初始化本地倉庫
$ git init
Initialized empty Git repository in /Users/xxx/Desktop/other/baiduai/.git/
# 2. 查看當前git當前狀態(tài)
# 有紅色蚌斩,說明還有沒有被加入緩存區(qū)的文件会油,即未被跟蹤
$ git status
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
README.md
index.html
reset.css
nothing added to commit but untracked files present (use "git add" to track)
# 3. 將修改后的所有(.)文件睁搭,加入暫存區(qū)
$ git add .
# 4. 查看當前git狀態(tài) 紅色代表剛剛修改過得文件氓扛,綠色代表已經(jīng)加入暫存區(qū)的文件
git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: README.md
new file: index.html
new file: reset.css
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: README.md
# 5. 將暫存區(qū)的文件 提交到git管理倉庫 鬓催,語法:git commit -m '備注消息'
# commit 是提交的意思,只提交藍色的文件,也就是說只提交暫存的文件
$ git commit -m '創(chuàng)建index.html文件'
[master (root-commit) 938f977] 創(chuàng)建index.html文件
3 files changed, 87 insertions(+)
create mode 100644 README.md
create mode 100644 index.html
create mode 100644 reset.css
# 6. 使用 git status 查看當前工作區(qū)是否提交成功
$ git status
On branch master
nothing to commit, working tree clean
在master分支
沒有可以提交的伍纫,工作區(qū)是干凈的
將本地的代碼提交到github
-
點擊創(chuàng)建按鈕
點擊創(chuàng)建按鈕 -
填寫倉庫名稱
填寫倉庫名稱 -
復制 添加遠程URL和push 命令
復制 添加遠程URL和push 命令 -
粘貼命令
粘貼命令 -
本地提交成功
本地提交成功 -
刷新瀏覽器
刷新瀏覽器