ubuntu 下github使用(简要过程)
来源:互联网 发布:孤寡老人数据 编辑:程序博客网 时间:2024/06/05 11:20
身为一个码农,掌握必要的代码管理工具,是必不可少的。这里简单介绍一下github的简单使用过程。
一、注册github账号。
请自行进入https://github.com进行注册。
二、安装git及一些基本设置。
1.安装git
sudo apt-get install git2.设置github账号信息
git config --global user.name "your name here"git config --global user.email "your email@example.com"
这里“your name here”输入的是你注册github的用户名,这一步是设置你提交时,默认的用户名。
类似的,“your email@example.com”是你注册github账号的邮箱,也可以用别的邮箱,不过用别的邮箱时,需要在github主页上设置里面把用的邮箱添加进去。
3.设置让credential helper 帮助我们在一定时间内在内存中保存我们的code,其中第二行为设置超时的时间
git config --global credential.helper cachegit config --global credential.helper 'cache --timeout=3600'
三、建立新的repository
https://github.com/new
四、针对一个新建立的repository的操作(已有项目,跳过此小节,直接看第五节)
1.先建立一个目录,该目录与你新建的repos有关
mkdir ~/test_project
cd ~/test_projectgit init //初始化一个空的git repositorytouch README //README 文件用于描述该项目2.提交刚刚加入的README文件
git add READMEgit commit -m "first commit" //-m 用于指定本次提交的描述信息3.提交到repository
git remote add origin https://github.com//username//test_project.git之后会要求输入用户名和密码,输入即可
提交命令是:
git push -u origin master
五、已有项目
1. 先clone下来
git clone https://github.com/username/test_project.git2. 进入到test_project文件中,进行文件修改,删除等操作
3.提交
git add . // .代表添加所有文件git commit -m "对文件操作的简易描述"git push -u origin master
0 0
- ubuntu 下github使用(简要过程)
- github简要使用
- Ubuntu下GitHub的使用
- Ubuntu下GitHub的使用
- ubuntu下使用git, github
- 在ubuntu下使用github
- GITHUB使用之简要步骤
- Ubuntu下Git以及Github使用
- Ubuntu下Git以及Github使用
- 如何在UBUNTU下使用github
- Ubuntu下Git以及Github使用
- ubuntu下github的使用与管理
- Ubuntu 下配置intellij使用Github
- Ubuntu下使用github+jekyll搭建博客
- Ubuntu下Git以及Github使用
- 如何在ubuntu下使用Github?
- ubuntu下git使用ssh连接github
- Ubuntu环境下GitHub安装与使用
- TYPESDK手游聚合SDK客户端设计思路与架构之一:设计需求分析
- 线程池-ExecutorService
- 《登天的感觉》读后感与摘录
- OpenGl的学习计划
- Redis 详解,基本方法使用
- ubuntu 下github使用(简要过程)
- EBS FORM 个性化工具栏调用请求
- JAVA schedule pool 理解
- Poj 1988 Cube Stacking(带权并查集)
- 第二节 Windows和linux下安装PHP扩展
- Linux下如何创建并使用一个static library
- C#32位程序与64位程序读\写注册表的区别
- R语言笔记--par()函数详解
- JDBC那些事(二)——查询结果集_ResultSet