git 的应用学习
2016-02-15 14:23
260 查看
git 的简单应用:
1.登录https://github.com/, 如: new respository, copy https://github.com/wxb2939/nav.git;
2.在终端进入项目目录,git clone https://github.com/wxb2939/nav.git;
3.git add 已有项目目录,如:git add nav
4.将文件commit到本地仓库, 如:git commit -m "first commit";
5.添加到远程仓库,如:git remote add origin https://github.com/wxb2939/nav.git;
6.将本地仓库添加到远程仓库,如:git push -u origin master;
常用到的命令:
显示状态 git log --oneline --decorate --graph --all;
1.登录https://github.com/, 如: new respository, copy https://github.com/wxb2939/nav.git;
2.在终端进入项目目录,git clone https://github.com/wxb2939/nav.git;
3.git add 已有项目目录,如:git add nav
4.将文件commit到本地仓库, 如:git commit -m "first commit";
5.添加到远程仓库,如:git remote add origin https://github.com/wxb2939/nav.git;
6.将本地仓库添加到远程仓库,如:git push -u origin master;
常用到的命令:
显示状态 git log --oneline --decorate --graph --all;
相关文章推荐
- C++ 运算符重载与友元函数的简单运用实例
- web开发中文字符乱码解决集合文
- Spring MVC 系列(五)——Spring MVC上传功能源码
- 求人的技巧 要许以好处。
- 修改 Ueditor 默认显示的字体大小
- 【Regular Expression】常用的正则表达式
- 有关大数的运算(1)
- Hive数据存储各种模式
- 安装wxPHP后,apache无法启动
- 4种Dolby声场技术的区别
- C# datagridview 从excel导入数据后时间的显示
- Lua学习笔记-迭代器和泛型for
- 一次失败的Selenium chromedriver切换
- ViewPager详解-----CodeParanoia
- 消息循环占用100%的cpu,添加sleep即可
- 3D数学基础图形知识点
- POJ2594Treasure Exploration(非简单路径覆盖)
- git first commit
- Java String类的Split以竖线作为分隔符
- Java String类的Split以竖线作为分隔符