使用 GitHub
2015-10-20 11:01
489 查看
这个礼拜比较清闲, 准备用三天时间研究一下怎么用 GitHub.
新建主页: https://github.com/zhangyu19881125?tab=repositories
在本地创建新目录
在本地创建git 分支
上传到服务器
在 GitHub 主页创建新的 Repository “test2”
从服务器拉取
本地修改并提交 github
刚发现 VSCode 自带 Git 功能. 那用起来就更方便了.
新建主页: https://github.com/zhangyu19881125?tab=repositories
在本地创建新目录
mkdir -p ~/git/testing ; cd ~/git/testing touch test_file
在本地创建git 分支
git config --global user.name "zhangyu19881125" git config --global user.email "zhangyu19881125@gmail.com" view ~/.gitconfig 或者 git config --list initial project version git commit --amend --reset-author git init git add . git commit -m "Initial Commit" -a 或者 git commit -m "Initial Commit" file
上传到服务器
在 GitHub 主页创建新的 Repository “test2”
…or create a new repository on the command line echo "# test2" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/zhangyu19881125/test2.git git push -u origin master …or push an existing repository from the command line git remote add origin https://github.com/zhangyu19881125/test2.git git push -u origin master
从服务器拉取
cd cd git git clone https://github.com/zhangyu19881125/ShellScript.git
本地修改并提交 github
mkdir bash cd bash git add . touch test_file git add test_file git commit -m "add test_file" -a git push origin master
刚发现 VSCode 自带 Git 功能. 那用起来就更方便了.
相关文章推荐
- C++内存块置0:memset,ZeroMemory和SecurZeroMemory
- 攻城记:Thinkphp框架的项目规划总结和踩坑经验
- <学习笔记>下载Spring框架
- python Timestamp、Datetime、UTC时间之间转换练习
- 3D三维向量的单位化、正规化、标准化推导及代码实现
- 汇编直接转换为C语言 Hex Rays Decompiler
- windows 2012(64位) IIS配置asp程序 500 - 内部服务器错误。您查找的资源存在问题,因而无法显示。
- PHP的中文乱码问题
- 数量积 向量的点积 即3D中任意两个三维向量的点积(数量积)推导及代码实现
- java 二维码生成
- Java过滤器和监听器
- 回调函数透彻理解Java
- C#: 向Word插入排版精良的Text Box
- java static 变量与方法
- Python中实现对Timestamp和Datetime及UTC时间之间的转换
- 向量的叉乘即3D中任意两个三维向量的叉乘(向量积)推导及代码实现
- Java基础常问问题 二
- C++中指针和引用的异同
- StringUtils中的isBlank与isEmpty
- LA 5010 Go Deeper 2-SAT 二分