點擊右邊

Git確立骰子比大小內地倉庫并上傳到Gitee的具體步調

電腦裝置git客戶端、注冊github賬號并上岸

到內地項目文件夾右鍵選擇git bash here

輸出小我私家信息(代碼提交者)

git config –global user.name “大眾xxxx公眾
git config –global user.email xxxxx@qq.com

在內地項目目次創立內地倉庫

git init  

輸出下令后項目目次會有一個隱蔽的.git文件夾

上傳一切代碼到內地倉庫

git add.   (注重add前面有個點,與add之間有一空格)

如許就把代碼上傳到內地倉庫了

git commit -m “大眾initial commit公眾

it

在gitee上新建項目,復制https://gitee.com/xxx/xx.git地址

539大樂透中獎號碼查詢

聯系關系內地倉庫并上傳代碼

git remote add origin https://github.com/Yanyf765/hr_sys.git(上步調復制的地址)

git push origin master

報錯:

履行下六合彩版路令:

git pull origin mas如何算出你的偏財運ter –allow-unrelated-histories

git 在pull或者者歸并分支的時辰偶然會碰到這個界面。可以不論(間接上面3,4步),若是要輸出詮釋的話就必要:

1.按鍵盤字母 i 進入insert模式

2.點竄最下面那行黃色歸并信息,可以不點竄

3.按鍵盤左上角”大眾Esc”大眾

4.輸出”大眾:wq”大眾,注重是冒號+wq,按歸車鍵即可

以后就可以勝利的pull,push了

提交到遙程報錯,以下:

src refspec master does not match any

緣故原由:

內地倉庫為空

辦理要領:

使用以下下令 增添文件;

$ git add add.php addok.php conn.php del.php edit.php editok.php ftpsql.sql index.php
$ git commit -m “大眾init files”大眾

以后在push進程中浮現以下過錯:

$ git push -u origin master
Warning: Permanently added the RSA host key for IP address ‘xx.xx.xxx.xxx’ to the list of known hosts.
To git@github.com:hahaha/ftpmanage.git
 ! [rejected]    撲克牌妞妞作弊    master -> master (fetch first)
error: failed to push some refs to ‘git@github.com:hahahah/ftpmanage.git’
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. 地下539玩法This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., ‘git pull …’) before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push –help’ for details.

提醒使用 git pull 以后在 push

使用以下下令辦理:

$ git pull –rebase origin master
warning: no common commits
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From github.com:hahah/ftpmanage
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
First, rewinding head to replay your work on top of it…
Applying: init files

持續push,勝利。

【免責聲明】本站內容轉載自互聯網,其相關談吐僅代表作者小我私家概念盡非權勢巨子,不代表本站態度。如您發明內容存在版權成績,請提交相關鏈接至郵箱:,咱們將實時予以處置。