問(wèn)題一 、遠(yuǎn)程--本地
在遠(yuǎn)程建立一個(gè)倉(cāng)庫(kù)Data_Preprocessing
git clone git@github.com:Babyzpj/Data_Preprocessing.git? 將該倉(cāng)庫(kù)克隆到本地
[root@ZPJ Git_rpo]# git add Data_Preprocessing/
[root@ZPJ Git_rpo]# git status
[root@ZPJ Git_rpo]# git commit -m '提交'
[root@ZPJ Git_rpo]# git status
On branch master
nothing to commit, working tree clean
問(wèn)題二、

問(wèn)題三、

問(wèn)題四:
error: failed to push some refs to 'git@github.com:Babyzpj/MachineLearning.git'
解決辦法:git pull origin master
問(wèn)題五:clone一個(gè)項(xiàng)目時(shí),會(huì)將將其它項(xiàng)目的文件clone到該文件下


會(huì)發(fā)現(xiàn)有兩個(gè)push,這很不正常。
解決辦法:考慮到以前的版本的配置影響,于是直接刪除了這個(gè)配置文件
?rm ?-rf ?/root/.gitconfig
然后再進(jìn)各個(gè)項(xiàng)目查看配置文件各項(xiàng)目的配置文件返現(xiàn)已經(jīng)正常

再次克隆項(xiàng)目時(shí),發(fā)現(xiàn),該問(wèn)題已經(jīng)解決!
問(wèn)題六:刪除一個(gè)本地項(xiàng)目
直接?
?rm -rf projict_name
git add .
git commit -m 'remove project_name'
問(wèn)題七:git pull時(shí)出現(xiàn)問(wèn)題

解決辦法:git pull --allow-unrelated-histories
參考了:
