github first use
来源:互联网 发布:博彦科技面试题java 编辑:程序博客网 时间:2024/05/17 13:07
将已有项目提交到github:
(省去安装github之类的)
(1)进入官网https://github.com,注册用户名,登陆。
(2)注意右上角,新建repository。
(3)填写repository说明
(4) 在本地项目根目录下执行下列命令git init //在当前项目目录中生成本地git管理,并建立一个隐藏.git目录git pull origin master //从Github上pull到本地源码库(目的连接本地和github服务器)git add . //添加当前目录中的所有文件到索引git commit -m "first commit" //提交到本地源码库,并附加提交注释git remote add origin git@github.com:cowsky/hello.git //添加到远程项目,别名为origin(git@github.com:cowsky(登陆名)/hello.git)git push -u origin master //把本地源码库push到github 别名为origin的远程项目中,确认提交
附:github一些常用的命令
git push origin master //把本地源码库push到Github上git pull origin master //从Github上pull到本地源码库git config --list //查看配置信息git status //查看项目状态信息git branch //查看项目分支git checkout -b host//添加一个名为host的分支git checkout master //切换到主干git merge host //合并分支host到主干git branch -d host //删除分支host
0 0
- github first use
- Use github
- First to use Blog!
- First use it.
- First Time Use It
- first use CButtonST
- hadoop use at first
- Github how to use
- How to use github
- First use blog ,make a flag
- First Use of Android! Hello android.
- NF_IP_PRE_ROUTING’ undeclared (first use in this function)
- 'O_BINARY' undeclared (first use in this function)
- `pid_t' undeclared (first use in this function)
- How to use GitHub with Android Studio
- the use of github in the Ubuntu
- how to use github on ubuntu
- How to Use Git and GitHub
- 链表
- java对Execl的导入导出
- mysql错误/usr/libexec/mysqld: Out of memory (Needed xxx bytes)
- Ext.form.FieldSet的常用配置项
- 1006. 换个格式输出整数
- github first use
- Android学习笔记之Fragment的两种使用方法
- 想的多一点,想得少一点和想的大一点和,想的小一点
- MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to r
- 今日Oracle及Hibernate问题总结
- 课程设计 银行账号管理
- Netty4.0学习笔记系列之五:自定义通讯协议
- Android 启动浏览器的方法
- 硕士论文分类号(中图法分类号)