git代码提交
来源:互联网 发布:淘宝店铺招牌是哪个 编辑:程序博客网 时间:2024/06/05 06:04
如何使用Github进行代码提交?
1、先安装git
win 下的git安装 http://help.github.com/win-git-installation/
mac 下的git安装 http://help.github.com/mac-git-installation/
linux 下的git安装 http://help.github.com/linux-git-installation/
2、安装完毕后使用你的github帐号进行登录
3、在Github创建一个repository
4、打开Github命令窗口,并cd到你本地电脑的存放代码的目录
5、输入
git init
进行初始化
6、输入
git commit -m "提交备注信息"
进行备注本次提交的内容描述
7、输入
git remote add origin git@github.com:wangchongan/DomainReg.git git push -u origin master
提交代码至Github
如何使用 Github下载 代码 ?
1、找到Github上要下载的代码页面,点击右上角的Fork按钮,会在你的帐号下生成一个Reposity
2、复制git地址,类似于:git@github.com:wangchongan/weixin-robot-java.git
3、到本地要存放代码的目录下,使用如下命令下载代码:
git clone git@github.com:wangchongan/weixin-robot-java.git
转载:http://www.tuicool.com/articles/vaQBJv
git使用总结
git stash:
将当前未提交到本地(和服务器)的代码推入到Git的栈中,这时候你的工作区间和上一次提交的内容是完全一样的。
git stash apply:
将之前推入到git栈中的代码恢复过来。
0 0
- git代码提交
- git提交文件代码
- git提交本地代码
- git使用--提交代码
- Git代码提交
- git代码提交
- git提交代码步骤
- git提交代码
- git代码提交
- git代码提交操作
- git如何提交代码
- git代码提交
- Git提交代码常用命令
- Git提交代码流程
- git提交代码
- git如何提交代码
- git提交代码
- git之代码提交
- 为什么Rest的出现影响今天的互联网,以及Web的发展历程
- 新线程网络请求,回调方法在主线程中进行
- tftp传文件
- SSH——浅谈spring中的事务(二)
- 【d3.js教程14】可拖动的地图详解
- git代码提交
- studio错误
- Sqoop实现MySql/Oracle与Hdfs/Hbase互导数据
- c++位运算
- NSScanner类的基本用法
- Duilib 入门
- 5.1.1. Using Lists as Stacks(像栈一样)
- Linux 线程操作函数技能总结
- 设置UISearchBar的背景颜色