1.首先要有自己的碼雲賬號,沒有的話可以註冊一個,地址:https://gitee.com/
2.碼雲上新建自己的項目(新建私庫或者公共庫)
3.進入自己的本地項目,然後使用git bash ,執行命令git init,會看到生成一個.git的文件
4.使用git remote add origin https://gitee.com/你的碼雲用戶名/項目名稱 //添加遠程倉庫
5.使用 git pull origin master 命令,將碼雲上的倉庫pull到本地文件夾
6.使用git add . (. 表示所有的)或者 git add + 文件名 // 將文件保存到緩存區
7.使用git commit -m '新添加的文件內容描述'
8.使用git push origin master ,將本地倉庫推送到遠程倉庫
本地項目上傳到碼雲
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
git常用命令小計
wchyumo2009
2020-07-08 12:20:37
centos7源碼安裝kong分佈式網關實踐
一: 安裝openssl和pcre yum -y install pcre-devel openssl openssl-devel 安裝git yum install git -y
幽默龙
2020-07-08 12:31:24
Desire rom - build kernel
dkyang
2020-07-08 12:22:51
八、SpringCloud——Config 分佈式配置中心Demo
仁钦宝
2020-07-08 11:45:52
centos 7 下 gitlab-runner 自動 CI/CD (持續集成/持續部署) 配置
你个大猪蹄子
2020-07-08 11:16:39
Gerrit status Merge conflict 解決
liuskyter
2020-07-08 11:16:26
git 本地庫的操作
yue_zhong
2020-07-08 11:09:17
idea配置Git上傳代碼到Gitlab
leo_gothic
2020-07-08 10:42:16
Git::取消跟蹤文件&&重新跟蹤
取消跟蹤文件&&重新跟蹤 如果修改了.gitignore文件,那麼需要進行如下操作: git rm -rf --cached . git add ./*
dieju8330
2020-07-08 10:35:13
[轉載]::Github進行fork後如何與原倉庫同步
dieju8330
2020-07-08 10:35:13
git異常:fatal: 'idea-line-2' is not a commit and a branch 'idea-line-2' cannot be created from it
創建分支並且拉去遠程同步分支的過程中出現該異常: fatal: 'idea-line-02' is not a commit and a branch 'idea-line
Danny_idea
2020-07-08 09:57:37
gitignore的使用
ynd_sg
2020-07-08 09:20:23
git克隆或下載倉庫中的某一個文件夾
ynd_sg
2020-07-08 09:20:23
Git 實用命令--持續更新
Joker_PL
2020-07-08 09:11:56