git提交到本地後修改本地庫注釋方法

2021-08-19 13:26:55 字數 650 閱讀 2441

當前狀態:

已提交到本地庫,但未push到遠端倉庫

1):change ci

# please enter the commit message for your changes. lines starting

# with '#' will be ignored, and an empty message aborts the commit.

## date:      sat apr 28 22:09:24 2018 +0800

## on branch

master

## initial commit

## changes to be committed:#       new file:   build/build.js

#      new file:

build/check-versions.js

#      new file: 

build/dev-client.js

#     

new file: 

build/dev-server.js

2):按下鍵盤c進入編輯狀態,修改頭部注釋

3):編輯完後按esc退出編輯狀態

4):按兩次大寫zz儲存退出vim

5):ok!

git本地提交到github遠端

將git的本地倉庫上傳到github遠端 1 首先要註冊乙個github賬號。登入 github 官網進行註冊,會發乙個認證碼到你的註冊郵箱中,獲取認證碼填寫後就可以註冊成功了。2 註冊完成後,使用 new repository,新建乙個倉庫 這裡建立的倉庫名稱是gittest,然後在 clone ...

本地專案提交到git遠端倉庫

本文使用的是idea開發工具,將專案提交到碼雲上,並建立開發分支 git init 初始化該專案為git專案 第一步 ignore 新增ignore檔案 第二步 git add 注意 add 後邊有個.點 第三步 git commit am 提交到本地 裡邊為注釋 第四步 git remote ad...

把本地專案提交到GIT上

1.1 新建.gitignore檔案 在提交之前.gitignore檔案會把檔案裡面包含的內容都忽略掉 node modules webstorm裡面的配置,別人不一定用 idea vscode也一樣 vscode git1.2 新建readme檔案 新建上就行了,和gitignore一樣都在專案根...