python_note
  • Introduction
  • My Python
    • Anaconda
    • argparse
    • datetime
    • json
    • logging
    • numpy
    • open
    • openCC
    • pandas & csv
    • Socket & SocketServer
    • re
    • yaml
    • smtp
    • 物件操作
    • unittest
    • 線程
    • prettytable
    • IO
    • pycurl
    • sys
    • pickle
    • auto-python-to-exe
    • cython
    • nuitka
  • Crawler
    • Urllib & Requests
      • User-agent
      • Percent-Encoding
      • mail code
    • Selenium
    • TCP & UDP
    • 控制字符(control character)
  • Web Development
    • Flask
      • RESTful api
      • Template
      • blueprint
    • Django
      • 環境佈署(windows)
    • 檢查Port
    • Apache
    • 使用者行為
    • jQuery
    • 壓力測試
    • DataTable
    • Bootstrap
    • CSS
    • JavaScript
    • Chart.js
  • Deep Learning
    • Keras 設定
    • RNN
    • LSTM
  • Test
    • T-Test
  • 資料結構
    • Hash
    • 時間複雜度
  • NLP
    • N-gram
    • CKIP
    • 中文轉數字
    • CRF
    • Mutual Information
    • 模糊比對
  • Linebot
    • Heroku
    • 圖文選單
    • channel
  • Linux
    • 常用指令
    • shell script
    • sshfs
    • ssh
    • nodejs & npm
    • debug
  • GCP
    • app engine
    • ssh(gcp)
    • gsutil
    • brabrabra
    • Load Balancer
    • k8s
  • Database
    • mysql
    • elasticsearch
      • Query
      • Backup and Restore
      • elasticdump
      • es2csv
      • ELK
    • mongodb
      • install
      • authentication
      • pymongo
    • sql server
  • go
    • Swarm
  • Docker
    • Kitematic
    • Dockerfile
    • Swarm
  • Git
  • 其他
    • USB軟體保護
    • Windows效能監視器
  • Blockchain
Powered by GitBook
On this page

Was this helpful?

Git

PreviousSwarmNext其他

Last updated 5 years ago

Was this helpful?

# 下載專案
git clone [url] [dirname]

# 列出目前可用的branch,也可看現在屬於哪個branch
git branch

# 切換branch
git checkout [branch name]

# pull
git pull

# push
git push

# commit
git commit -m ['message']

# 比對工作目錄及暫存區域的差異
git diff

參考連結:

# 復原檔案
git checkout -- [filename]

# 查詢專案狀態,那些已被修改之類的
git status

驗證問題(self signed certificate in certificate chain)

git config --global http.sslVerify false

在linux使用ssh key驗證github (ssh-add)

gitlab

新增ssh key

如果可以成功clone但是無法push

參考連結:

https://code.yidas.com/git-commands/
https://zlargon.gitbooks.io/git-tutorial/content/file/recover.html
https://blog.csdn.net/officercat/article/details/39989837
https://devmanna.blogspot.com/2018/06/git-remote-ssl-certification-problem.html
https://www.cnblogs.com/Security-Darren/p/4106328.html
https://sinyilin.github.io/git/20191024/1014042378/
https://blog.csdn.net/zzh920625/article/details/78087669