找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開始

搜索
查看: 1266|回復(fù): 0
收起左側(cè)

如何向空的git remote庫中添加內(nèi)容

[復(fù)制鏈接]
ID:520946 發(fā)表于 2019-4-24 22:53 | 顯示全部樓層 |閱讀模式
Command line instructions

Git global setup
git config --global user.name "username"
git config --global user.email username@163.com

Create a new repository
git clone git@www點(diǎn)domain點(diǎn)top:repositories/test.git
cd test
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Existing folder
cd existing_folder
git init
git remote add origin git@www點(diǎn)domain點(diǎn)top:repositories/test.gitgit add .
git commit -m "Initial commit"
git push -u origin master

Existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin git@www點(diǎn)domain點(diǎn)top:repositories/test.git
git push -u origin --all
git push -u origin --tags
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

手機(jī)版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表