关于gitHub

Posted 沧海一粒沙

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于gitHub相关的知识,希望对你有一定的参考价值。

http://www.oracle.com/technetwork/java/javase/downloads

$ git config --global user.name ‘zdbadmin‘

$ git config --global user.email ‘[email protected]

git clone 拉取git项目地址
mkdir test
cd test
git init
touch al.php 新建文件
git add al.php 添加到暂存区
git status 查看状态
git commit -m ‘第一次修改文件‘ 提交到本地仓库

git push 同步到远程仓库
//git push报403错误没有权限在 .git/config配置文件中修改
[remote "origin"]
url = https://github.com/zdbadmin/biaoshihui.git
fetch = +refs/heads/*:refs/remotes/origin/*
修改为
[remote "origin"]
//url = https://用户名:密码@github.com/zdbadmin/biaoshihui.git
url = https://zdbadmin:[email protected]/zdbadmin/biaoshihui.git
fetch = +refs/heads/*:refs/remotes/origin/*

 

取出数组中某个键的值
$first_names = array_column($records, ‘first_name‘);
print_r($first_names);

ranger(1, 10, 2);
$array = array(4,5,1,2,3,1,1,2);
array_count_values($array);返回值出现次数

 

Linux查看安装路径的命令:

whereis php

which php :这个是查看正在运行的

以上是关于关于gitHub的主要内容,如果未能解决你的问题,请参考以下文章

关于博客和github

关于博客和github

关于博客和github

关于博客和github

window下配置SSH连接GitHubGitHub配置ssh key(转载自 http://jingyan.baidu.com/article/a65957f4e91ccf24e77f9b11.h

Git链接GitHub并上传项目