本地專案提交至GitHub

2021-08-01 17:39:09 字數 360 閱讀 5501

1.首先已在github上註冊好使用者

2.在github上已建立好資源位址

3.建立完成後轉殖至本地目錄下

git clone

4.進入clone後本地目錄

5.把**拷到這個目錄

6.檢視目錄下是否有.gitignore檔案可參考下圖

7.重新在專案目錄下開啟git bash執行命令

[plain]view plain

copy

print?

$git add .  

$git commit -m "first comm

it"$git push  origin master 

初次向github提交本地專案

大多數情況下,我們在本地建立了乙個專案,寫好了必要的初始化 這時,需要將本地 push到github上建好的倉庫中。步驟 在github上新建乙個倉庫 複製倉庫位址 在本地,用命令進入到當前專案所在目錄 輸入git init將本地專案資料夾變成git倉庫 輸入git add 將本地所有 新增到 快取...

提交專案至本地 Push至伺服器

1 sourcetree中 轉殖 新建 建立新倉庫 提交 遇到的問題 提交失敗。解決方案 sourcetree中工具 選項 一般 新增使用者名稱 多乙個空格 和密碼 刪除.gitconfig檔案 然後重新設定使用者名稱 2 commit 推送 分支 studyswift 3 更新內容 xcode下建...

本地專案提交到github或者gitlab

建立好之後會生成乙個.git路徑 1 右鍵 點選git bash 2在git bash 裡面執行git init 初始化 3git add 提交當前 4 git commit m init commit git remote add origin 你新建專案時候的遠端git 位址 git push ...