git的使用
2016-03-05 23:09
344 查看
新建一个仓库并初始化和提交:
增加修改的文件:
新增加文件:(第三条语句在bitbucket中没有用)
pull一个仓库:
git init
git pull https://github.com/sky101010ws/helloworld.git
echo "# helloworld" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/sky101010ws/helloworld.git git push -u origin master
增加修改的文件:
git add 修改的文件 git commit -m "修改说明" git push -u origin master
新增加文件:(第三条语句在bitbucket中没有用)
git add 新增加文件 git commit -m "first commit" 本地提交并增加提交日志 git remote add origin https://github.com/sky101010ws/helloworld.git 经测试该语句在github中好像也没有用,用时需要注意 git push -u origin master 将本地提交的变化提交到远程
pull一个仓库:
git init
git pull https://github.com/sky101010ws/helloworld.git
相关文章推荐
- Windows 2008环境SharePoint无法上传大文件的解决方案
- PAT-A1008. Elevator (20)
- HDU 5639 Deletion 二分+网络流
- Java 格式化(数字和字符串)
- Adb failed to restart! Make sure the plugin is properly configured.
- GuideMap 登陆界面 详细文档(二)
- ORACLE RAC(11203)环境将误建立在本地目录的文件转移到ASM存储中
- BZOJ4008/HNOI2015 亚瑟王(期望dp)
- Cygwin config
- POJ2485 prim算法最小生成树
- JQuery $post函数
- PAT-B1003. 我要通过!(20)(数学)
- PAT-A1069. The Black Hole of Numbers (20)(数学)
- LightOJ1257 Farthest Nodes in a Tree (II)(树的点分治)
- Cordova+ionic 开发hybird App --- 开发环境搭建
- linux rpm命令
- 12.2 元字段(Meta-Fields) (for Elasticsearch)
- 基础练习 01字串
- 【Android】EditText获得焦点以及失去焦点
- 腾讯qq的发展史