Git上传代码
2017-12-29 16:52
246 查看
第一次使用要初始化自己的用户信息
it config --global user.name "你的名字或昵称" //设置用户名
git config --global user.email "你的邮箱" //设置邮箱
1.进入本地的项目目录,右键“Git Bash here”,调出git命令行界面,然后输入
git init
2.就是将目录下的所有文件上传,也可以将“.”换成具体的文件名
git add .
3.将项目提交到gitHub
git commit -m "注释语句"
4.在github上创建新的repository
5.点击 “Create repository”跳转到一个连接,如下红色圈获取到本项目的github地址
6.将本地的代码关联到github上
git remote add origin 项目的github地址
7.上传代码到github之前需要先pull
git pull origin master
8.上传代码到远程仓库
git push -u origin master
之后输入账号,密码,上传到github
it config --global user.name "你的名字或昵称" //设置用户名
git config --global user.email "你的邮箱" //设置邮箱
1.进入本地的项目目录,右键“Git Bash here”,调出git命令行界面,然后输入
git init
2.就是将目录下的所有文件上传,也可以将“.”换成具体的文件名
git add .
3.将项目提交到gitHub
git commit -m "注释语句"
4.在github上创建新的repository
5.点击 “Create repository”跳转到一个连接,如下红色圈获取到本项目的github地址
6.将本地的代码关联到github上
git remote add origin 项目的github地址
7.上传代码到github之前需要先pull
git pull origin master
8.上传代码到远程仓库
git push -u origin master
之后输入账号,密码,上传到github
相关文章推荐
- Git上传代码到GitHub替换照片时出现异常
- 使用Git将本地项目或代码上传到GitHub上
- git 上传本地代码
- 解决android studio 利用git向github上传代码时遇到的Can’t finish GitHub sharing process Successfully created projec
- 使用git工具提交上传代码到GitHub上或者远程仓库
- git上传代码
- 使用Git向GitHub上传代码
- git 代码上传
- 利用git bash(git命令行)将本地代码上传到github上
- Git上传项目代码到github
- Git 使用教程 之 Mac 使用Git上传代码到GitHub
- 【GIT】Github上传本地代码详解
- 将代码上传git@git.oschina.net出现Permission denied (publickey).
- 用git把代码上传到google code
- 使用git和TortoiseGit上传代码至GitHub
- Git超级傻瓜教程[快速创建Git远程项目并上传本地代码]
- git使用之如何将github库下载到本地与如何将代码上传github
- linux(centos)下安装git并上传代码些许步骤(亲自验证过的步骤)
- git使用手册-将本地代码上传至github