Giter VIP home page Giter VIP logo

gittest0806's Introduction

gitTest

查看 git 版本

git --version

初始化數據庫

資料夾裡面會有一個隱藏的 .git 資料夾 (前往資料夾的終端機指令:cd 資料夾路徑)

git init

設定個人資料

做版本控制時,可以知道更新版本的人是誰

  • 設定作者:git config --global user.name "your name"
  • 設定作者 email:git config --global user.email "your email"
  • 查詢 git 設定內容:git config --list

查看 git 的狀態

如果有新增檔案、更改檔案,git 狀態就會改變,可以用下面的指令查看 git 目前的狀態是怎樣。

git status

加入索引

git add 將檔案從加入索引(暫存區)。

加入全部有改變的檔案到索引

git add .

or

加入指定檔案到索引

git add <file>

加入本地數據庫 (local repository)

git commit 指令把暫存區的內容移至儲存庫。

git commit -m "新增/更改狀態描述"

加入遠端數據庫 (remote repository)

git remote add origin https://github.com/kkkaychen/gitTest0806.git
git branch -M main
git push -u origin main

下一次推上遠端數據庫

如果檔案修改後要再推上遠端數據庫,只要做下面的指令:

git add .
git commit -m "update README.md"
git push -u origin main

gittest0806's People

Contributors

kkkaychen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.