github 是一个基于 git 的代码托管平台,付费用户可以建私人仓库,免费用户只能使用公共仓库。对于一般人来说公共仓库就已经足够了,而且也没多少代码来管理。下面简单介绍如何使用 github,供初学者参考。一、建立仓库点击右上角加号,选择 New repository,如图所示:然后填写仓库名称,选上 Initialize this repository with a README,这个意思是在建立仓库时自动生成 README.md 文件,最后 Create repository,如图所示:二、...
GitHub上如何创建文件夹 - cs_wu - 博客园 https://www.cnblogs.com/wuyepeng/p/9742690.html在github上快速创建文件夹以及生成链接的详尽步骤 - exploringfly的博客 - CSDN博客 https://blog.csdn.net/exploringfly/article/details/78652762原文:https://www.cnblogs.com/tongongV/p/10962085.html
ERROR: cannot download default sources list from:https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.listWebsite may be down. 解决方法:我使用的最后一个,可以Traceback (most recent call last): File "/usr/bin/rosdep", line 3, in <module> from rosdep2.main import rosdep_main ImportError: No module named ‘rosdep2‘解决方案:将Ubuntu默认python版本设置为2.7。如果报...
Git入门如果你完全没有接触过Git,你现在只需要理解通过Git的语法(敲入一些命令)就可以将代码上传到远程的仓库或者下载到本地的仓库(服务器),可知我们此时应该有两个仓库,就是两个放代码的地方,一个是本地,一个是远程的(如Github)。企业或者团队可以通过Git来对项目进行管理,每个程序员只需将自己的本地仓库写好的代码上传到远程仓库,另一个程序员就可以下载到本地仓库了。今天我们就从Git终端软件的安装开始,再这之前我...
1 git config --global user.name "Your Real Name" 2 git config --global user.email you@email.addressgit initgit add .git commit -m ‘Test‘git remote add origin git@github.com:XXX/XXX.git 3 git push -u origin master一些可能遇到的问题解决:如果输入$ git remote add origin git@github.com:djqiang(github帐号名)/gitdemo(项目名).git提示出错信息:fatal: remote origin already exists.解决办法如下:1、先输...
1.下载git在windows机器安装;2.打开gitbash:
? ? $ cd? ? /e/MyGithub? ? $ mkdir? ? GitTest? ? $ cd GitTest? ? $ git init? ??Initialized empty Git repository in e:/MyGitHub/GitTest/.git/ ? ?//表示初始化一个本地代码库成功? ? $ touch readme.txt? ? //添加一个文件? ? $ git add readme.txt? ? //将文件添加到版本控制中? ? $ git commit -m "first commit"?? //第一次提交?? ??[master (root-commit) 06899d3] first ...
条件:language:python
commits:>100
contributors:>2
stars:>5
fork:0 实现:from github import Githubaccess_token = ‘your_token‘
gh = Github(access_token)def search_repositories(q):try:repos=gh.search_repositories(query=q)except Exception, e:return Nonereturn reposif__name__ == ‘__main__‘:q = "language:Python forks:0 stars:>5"repos=search_repositories(q)min_num_of_commits=100min_num_of_contributo...
因为debian有多种用户, root和普通的user所以我把user作为了私有的git仓库用户. 把root超级管理员作为了github的用户.这样子只需要单独配置两个不同的共用gitconfig就可以通用了.第一个是root下的配置, 在/root/.gitconfig[user]name = rainysiaemail = rainysia@gmail.com
[alias]co = checkoutbr = branchci = commitst = statuslast = log -1 HEADcf = configmd = commit --amenddt = difftoolmt = mergetoolline = log --oneli...
今天周六,下午要去加班。早上起来闲来无事可做逛逛github,看见个很好玩的东西分享一下。在java中拼接出表格来。效果还蛮好玩的。例:这样的效果╔══════╤════════╗
║ Test │ Header ║
╠══════╪════════╣
║ Foo │ Bar ║
╟──────┼────────╢
║ Kit │ Kat ║
╚══════╧════════╝首先下载一个jar包,gitHub地址 https://github.com/PengqinpingGit...
gitgit clone https://github.com/sunyongjie1984/sllgit clone https://sunyongjie1984:Git541981101211@github.com/sunyongjie1984/sllvi islln.h // modify one filegit diffgit loggit add islln.hgit diffgit loggit commit -m "bala bala bala" islln.hgit loggit diffgit push origin master git status -sgit pullrm isll.hgit checkout isll.h
with visul studio with centos eclipse http://www.cnblogs.com/sunyongj...
MKdocs安装1.首先需要在本地计算机安装python环境和pip工具2. 使用pip下载Mkdocs库,执行:pip install mkdocs
3. 在本地任意路径位置创建文档项目,执行:mkdocs new <project name>执行完成后会在本地会生成一个以project命名的文件夹,此文件夹中包含站点所有文件信息4. 尝试开启可用浏览器打开的本地站点,在该文件夹上执行:mkdocs serve
站点开启成功后会的提示站点默认地址为:https://127.0.0.1:8000。 在浏览器上打开此地...
repository# create a new repository on the command line
echo "# vue-study" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/liujitao/vue-study.git
git push -u origin main
# push an existing repository from the command line
git remote add origin https://github.com/liujitao/vue-study.git
git branch -M main
git push -u or...
Github 中提交项目到自己仓库的gh-pages分支git symbolic-ref HEAD refs/heads/gh-pages
git add -A
git commit -m "no message"
git push origin gh-pages参考:https://www.cnblogs.com/MuYunyun/p/6082359.html原文:https://www.cnblogs.com/hglibin/p/9977888.html
一、远程项目获取(克隆)syntax:$ git clone <版本库的网址>$ git clone <版本库的网址> <本地目录名>example:$ git clone https://github.com/jquery/jquery.git$ git clone http[s]://example.com/path/to/repo.git/$ git clone ssh://example.com/path/to/repo.git/$ git clone git://example.com/path/to/repo.git/$ git clone /opt/git/project.git $ git clone file:///opt/git/project.git$ git clone ftp[s]://example.com/...
一、配置环境1.安装git 2.安装node.js 二、配置本地博客1.安装hexo任意位置右键git bash输入(npm命令即可安装)npm install -g hexo-cli2.Hexo建立网站所需要的所有文件创建一个文件夹,在文件夹内执行命令hexo init
npm install3.准备启动本地博客(可选)继续执行命令hexo s打开浏览器,在地址栏中输入 http://localhost:4000/ 就可以访问本地blog了三、部署在github1.github完成ssh授权右键Git Bash,输入ssh-keygen -t rsa回车...