linux安装git2.5遇到的问题
问题1:
[root@localhost git-2.5.0]# ifconfig
-bash: ifconfig: 未找到命令
联网执行下面命令
yum install net-tools
问题2:
[root@localhost git-2.5.0]# autoconf
-bash: autoconf: 未找到命令
或者
[root@localhost git-2.5.0]# ./configure
-bash: configure: 未找到命令
联网执行下面命令
yum install install autoconf automake libtool
问题3:
[root@localhost git-2.5.0]# make
……………………….
……………………….
/usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 3.
BEGIN failed—compilation aborted at Makefile.PL line 3.
make[1]: [perl.mak] 错误 2
make: [perl/perl.mak] 错误 2
联网执行下面命令
yum install perl-ExtUtils-MakeMaker package
提交到github
git remote add origin git@github.com:kdm0073/myrepo1.git
git push -u origin master
提交到码云
git remote add origin_mayun_repo2 git@gitee.com:kdm0073/mrepo1.git
[rejected] master -> master (fetch first)
error: failed to push some refs to ‘https://gitee.com/kdm0073/mrepo1.git‘
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. 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
报这个错原因是因为 创建仓库时,选择了使用README初始化,仓库中多了俩问价你,本地没有
git pull —rebase origin_mayun_repo2 master
将README.en.md README.md文件下载到本地
git push -u origin_mayun_repo2 master
