Git

# 下載專案
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

參考連結: https://code.yidas.com/git-commands/arrow-up-right

參考連結: https://zlargon.gitbooks.io/git-tutorial/content/file/recover.htmlarrow-up-right

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

https://blog.csdn.net/officercat/article/details/39989837arrow-up-right

https://devmanna.blogspot.com/2018/06/git-remote-ssl-certification-problem.htmlarrow-up-right

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

https://www.cnblogs.com/Security-Darren/p/4106328.htmlarrow-up-right

gitlab

新增ssh key

https://sinyilin.github.io/git/20191024/1014042378/arrow-up-right

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

https://blog.csdn.net/zzh920625/article/details/78087669arrow-up-right

Last updated